Skip to content
Snippets Groups Projects
Commit 0a4f822a authored by david.bauer's avatar david.bauer :fire:
Browse files

Change to distroless image

parent 80fd3809
No related branches found
No related tags found
No related merge requests found
FROM node:17-alpine
FROM node:16-slim as build-env
LABEL maintainer="ui-team@open-xchange.com"
WORKDIR /app
ADD . /app
RUN yarn --production --non-interactive --no-progress -s
FROM gcr.io/distroless/nodejs:16
USER 1000
ARG APP_VERSION
ARG BUILD_TIMESTAMP
ARG CI_COMMIT_SHA
......@@ -8,9 +15,8 @@ ENV APP_VERSION=$APP_VERSION
ENV BUILD_TIMESTAMP=$BUILD_TIMESTAMP
ENV CI_COMMIT_SHA=$CI_COMMIT_SHA
WORKDIR /app
ADD . /app
RUN yarn --production --non-interactive --no-progress -s
EXPOSE 8080
CMD ["node", "src/index.js"]
COPY --from=build-env /app /app
WORKDIR /app
CMD ["src/index.js"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment