console/services.dockerfile
Laurin Quast d73de654eb
feat: docker images (#386)
* feat: build images

* :)

* (:

* try caching

* naming adjustments

* feat: add some labels

* chore: run integration tests on the built docker images

* feat: use hcl file and tag images with the branch name

* fix hash

* build all lol

* feat: only push stuff on non forks

* only push a few images :)

* load that s

* comon

* embed port in docker image

* increase timeout

* don't run stuff multiple times
2022-09-23 14:39:28 +02:00

27 lines
692 B
Docker

FROM node:16-slim
RUN apt-get update && apt-get install -y \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY . /usr/src/app/
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"
LABEL org.opencontainers.image.url="https://github.com/kamilkisiela/graphql-hive"
ENV ENVIRONMENT production
ENV RELEASE $RELEASE
ENV PORT $PORT
HEALTHCHECK --interval=5s \
--timeout=5s \
--start-period=5s \
--retries=6 \
CMD $HEALTHCHECK_CMD
CMD ["node", "index.js"]