-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (27 loc) · 732 Bytes
/
Copy pathDockerfile
File metadata and controls
42 lines (27 loc) · 732 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
39
40
41
42
FROM ruby:2.6.5-alpine
ARG UID=1000
ARG GID=1000
RUN addgroup -S filesafe -g $GID && adduser -D -S filesafe -G filesafe -u $UID
RUN apk add --update --no-cache \
alpine-sdk \
sqlite-dev \
git \
make \
g++ \
curl-dev \
nodejs \
nodejs-npm \
yarn \
tzdata
WORKDIR /filesafe-relay
RUN chown -R $UID:$GID .
USER filesafe
COPY --chown=$UID:$GID package.json yarn.lock Gemfile Gemfile.lock /filesafe-relay/
COPY --chown=$UID:$GID vendor /filesafe-relay/vendor
RUN yarn install --frozen-lockfile
RUN gem install bundler && bundle install
COPY --chown=$UID:$GID . /filesafe-relay
RUN bundle exec rake assets:precompile
EXPOSE 3000
ENTRYPOINT [ "docker/entrypoint.sh" ]
CMD [ "start" ]