-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
26 lines (25 loc) · 1.06 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
# Builder
FROM node:18-alpine3.18 AS builder
WORKDIR /app
COPY . .
RUN npm install && npm run build
# Final image
FROM node:18-alpine3.18
ARG BUILD_DATE=dev
ARG BUILD_REVISION=dev
ARG BUILD_VERSION=dev
ENV NODE_ENV=production
WORKDIR /app
COPY --from=builder /app .
EXPOSE 3000
CMD ["node", "dist/index.js"]
LABEL maintainer="Nicolas Vuillamy <[email protected]>" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$BUILD_REVISION \
org.opencontainers.image.version=$BUILD_VERSION \
org.opencontainers.image.authors="Nicolas Vuillamy <[email protected]>, Eyal Paz <[email protected]>, Itay Bisoni <[email protected]>" \
org.opencontainers.image.url="https://github.com/oxsecurity/codetotal" \
org.opencontainers.image.source="https://github.com/oxsecurity/codetotal" \
org.opencontainers.image.documentation="https://github.com/oxsecurity/codetotal" \
org.opencontainers.image.vendor="OX Security" \
org.opencontainers.image.description="Front End and Back End for CodeTotal"