-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 698 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 alpine:3.16
MAINTAINER Deer Spangle <deer@spangle.org.uk>
ENV BUILD_PACKAGES bash curl-dev ruby-dev build-base
ENV RUBY_PACKAGES ruby ruby-dev ruby-bigdecimal ruby-json ruby-io-console ruby-bundler
ENV REDIS_PACKAGES redis
# Update and install all of the required packages.
# At the end, remove the apk cache
RUN apk update && \
apk upgrade && \
apk add $BUILD_PACKAGES && \
apk add $RUBY_PACKAGES && \
apk add $REDIS_PACKAGES && \
rm -rf /var/cache/apk/*
RUN mkdir /usr/faexport
WORKDIR /usr/faexport
COPY Gemfile /usr/faexport/
COPY Gemfile.lock /usr/faexport/
RUN bundle install
COPY . /usr/faexport
EXPOSE 9292/tcp
ENTRYPOINT ["sh","/usr/faexport/entrypoint.sh"]