Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 435 B
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
ENV APP_VERSION=$APP_VERSION
ENV BUILD_TIMESTAMP=$BUILD_TIMESTAMP
ENV CI_COMMIT_SHA=$CI_COMMIT_SHA

EXPOSE 8080

COPY --from=build-env /app /app
WORKDIR /app
CMD ["src/index.js"]