2025-01-09 09:49:30 +00:00
|
|
|
FROM node:22.13.0-slim
|
2022-09-23 12:39:28 +00:00
|
|
|
|
2024-05-17 12:30:10 +00:00
|
|
|
RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
|
2022-09-23 12:39:28 +00:00
|
|
|
|
2024-02-20 15:06:34 +00:00
|
|
|
ARG SERVICE_DIR_NAME
|
|
|
|
|
WORKDIR /usr/src/app/$SERVICE_DIR_NAME
|
2024-04-05 13:37:15 +00:00
|
|
|
|
|
|
|
|
COPY --from=dist . /usr/src/app/$SERVICE_DIR_NAME/
|
|
|
|
|
COPY --from=shared . /
|
2022-09-23 12:39:28 +00:00
|
|
|
|
2024-10-10 10:12:04 +00:00
|
|
|
LABEL org.opencontainers.image.licenses=MIT
|
2022-09-23 12:39:28 +00:00
|
|
|
LABEL org.opencontainers.image.title=$IMAGE_TITLE
|
|
|
|
|
LABEL org.opencontainers.image.version=$RELEASE
|
|
|
|
|
LABEL org.opencontainers.image.description=$IMAGE_DESCRIPTION
|
|
|
|
|
LABEL org.opencontainers.image.authors="The Guild"
|
|
|
|
|
LABEL org.opencontainers.image.vendor="Kamil Kisiela"
|
2024-10-14 14:36:45 +00:00
|
|
|
LABEL org.opencontainers.image.url="https://github.com/graphql-hive/platform"
|
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/graphql-hive/platform"
|
2022-09-23 12:39:28 +00:00
|
|
|
|
|
|
|
|
ENV ENVIRONMENT production
|
|
|
|
|
ENV RELEASE $RELEASE
|
|
|
|
|
ENV PORT $PORT
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=5s \
|
|
|
|
|
--timeout=5s \
|
|
|
|
|
--start-period=5s \
|
|
|
|
|
--retries=6 \
|
|
|
|
|
CMD $HEALTHCHECK_CMD
|
|
|
|
|
|
2024-04-05 13:37:15 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|