forked from wemove/read2burn
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
55 lines (39 loc) · 1.31 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
47
48
49
50
51
52
53
54
55
####################
# Build application
FROM node:lts-alpine AS builder
ENV READ2BURN_HOME="/app"
WORKDIR ${READ2BURN_HOME}
COPY . .
# Run a command inside the image
# If you are building your code for production
# RUN npm ci --only=production
# else
# RUN npm install
RUN apk update \
&& apk upgrade \
&& apk add --no-cache tzdata \
&& npm ci --only=production \
&& rm -rf ${READ2BURN_HOME}/docker
####################
# Create image
FROM node:lts-alpine
# Your contact info
LABEL \
org.opencontainers.image.authors="Jürrens, Eike Hinderk <[email protected]>" \
org.opencontainers.image.description="transport passwords more secure by email" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.title="read2burn by wemove forked by 52n" \
org.opencontainers.image.url="https://github.com/52North/read2burn" \
org.opencontainers.image.vendor="52°North Spatial Information Research GmbH"
ENV READ2BURN_HOME="/app"
WORKDIR ${READ2BURN_HOME}
COPY --from=builder ${READ2BURN_HOME} .
EXPOSE 3300
VOLUME ["${READ2BURN_HOME}/data"]
CMD ["node", "app.js"]
ARG GIT_COMMIT
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
ENV GIT_COMMIT=${GIT_COMMIT}
ARG BUILD_DATE
LABEL org.opencontainers.image.created="${BUILD_DATE}"
ENV BUILD_DATE=${BUILD_DATE}