gitpod/components/ee/db-sync/leeway.Dockerfile
Mads Hartmann 28bf0e6541 component/gitpod-protocol/tracing: Add version tags to all spans
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-12-08 11:30:33 +01:00

25 lines
792 B
Docker

# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the Gitpod Enterprise Source Code License,
# See License.enterprise.txt in the project root folder.
FROM node:16.13.0-slim as builder
COPY components-ee-db-sync--app /installer/
WORKDIR /app
RUN /installer/install.sh
FROM node:16.13.0-slim
ENV NODE_OPTIONS=--unhandled-rejections=warn
# '--no-log-init': see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
RUN useradd --no-log-init --create-home --uid 31002 --home-dir /app/ unode
COPY --from=builder /app /app/
USER unode
WORKDIR /app/node_modules/@gitpod/db-sync
ENTRYPOINT [ "yarn", "start" ]
ARG __GIT_COMMIT
ARG VERSION
ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
ENV GITPOD_BUILD_VERSION=${VERSION}
CMD [ "run", "--soft-start" ]