mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
25 lines
792 B
Docker
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" ] |