forked from WikiEducationFoundation/WikiEduDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 678 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ruby:3.1.2-slim
WORKDIR /app
# Install tools for development and build dependencies for gems
RUN apt update && \
apt install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt install -y nodejs git gnupg pandoc dpkg-dev libmysql++-dev && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
# Install gems
COPY . .
RUN bundle config --global frozen 1
RUN bundle install
# Install yarn dependencies
RUN npm install -g yarn
RUN yarn
# Setup configurations
COPY config/application.example.yml ./config/application.yml
COPY config/database.example.yml ./config/database.yml
EXPOSE 3000
ENTRYPOINT ["./docker/entrypoint.sh"]
CMD ["start"]