-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (39 loc) · 1.32 KB
/
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
37
38
39
40
41
42
43
44
45
46
FROM alpine:3.18
ARG TARGETPLATFORM
ENV APP_STARTUP_CMD="tail -f /dev/null"
ENV APP_HOSTNAME=app.local
ENV APP_ROOT=/app
ENV APP_LOG_DIR=$APP_ROOT/log
ENV COLUMNS=160
ENV DEPLOY_ENV=prod
ENV RSYNC_FLAGS="--quiet"
ENV RSYNC_COPY="rsync -a --inplace --no-compress $RSYNC_FLAGS"
ENV RSYNC_MOVE="$RSYNC_COPY --remove-source-files"
ENV TERM=dumb
COPY build/scripts /scripts
RUN apk --no-cache add \
curl \
git \
patch \
rsync \
sudo \
unzip \
util-linux && \
mkdir -p "$APP_LOG_DIR" && \
chmod -R 755 /scripts
WORKDIR /app
ENTRYPOINT ["/scripts/run.sh"]
LABEL ca.unb.lib.generator="none" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="docker-base is the base docker image at UNB Libraries." \
org.label-schema.name="none" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://github.com/unb-libraries/docker-base" \
org.label-schema.vcs-ref="2.x" \
org.label-schema.vcs-url="https://github.com/unb-libraries/docker-base" \
org.label-schema.vendor="University of New Brunswick Libraries" \
org.label-schema.version=$VERSION \
org.opencontainers.image.authors="libsystems@unb.ca" \
org.opencontainers.image.source="https://github.com/unb-libraries/docker-base"