-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 891 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (29 loc) · 891 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
29
30
31
32
33
34
35
36
37
38
FROM ruby:3.1.2-bullseye
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get update && apt-get dist-upgrade -y && apt-get install -y \
rsync \
cmake \
libopencv-dev \
libvips-dev \
libvips-tools \
nodejs \
nginx \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN gem update --system && gem install bundler
RUN corepack enable
RUN rm /etc/nginx/sites-enabled/default
RUN mkdir -p /dungeon/
WORKDIR /dungeon
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY package.json yarn.lock ./
RUN yarn install --production=true
COPY . /dungeon
ENV RAILS_ENV docker
RUN chmod a+x /dungeon/docker/web_boot.sh
# RUN bundle exec rake compile
RUN env RAILS_ENV=production bundle exec rake webpacker:clobber webpacker:compile
COPY docker/nginx/dungeon.conf /etc/nginx/sites-enabled/
EXPOSE 80
CMD ["/dungeon/docker/web_boot.sh"]