forked from shopinvader/docker-locomotive-shopinvader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 859 Bytes
/
Dockerfile
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
FROM ruby:2.7.7
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY install /usr/src/install
COPY bin /usr/src/bin
ENV BUILD_PACKAGE curl gpg git build-essential locales
COPY shopinvader ./
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y imagemagick nodejs $BUILD_PACKAGE \
&& /usr/src/install/gosu.sh \
&& /usr/src/install/shopinvader.sh \
&& apt-get upgrade -y -o Dpkg::Options::="--force-confold" \
&& locale-gen pt_BR.UTF-8 \
&& apt-get purge -y $BUILD_PACKAGE \
&& apt-get clean
ENTRYPOINT ["/usr/src/bin/docker-entrypoint.sh"]
# Start puma server with loco user
CMD gosu loco bundle exec puma -C config/puma.rb
EXPOSE 3000
EXPOSE 9293
VOLUME \
"/usr/src/app/tmp" \
"/usr/src/app/log" \
"/usr/src/app/public/sites" \
"/usr/src/app/public/uploaded_assets"