mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
* 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
33 lines
780 B
Docker
33 lines
780 B
Docker
FROM node:16-slim as install
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json /usr/src/app/
|
|
|
|
ENV NODE_ENV production
|
|
|
|
# DANGER: there is no lockfile :)
|
|
# in the future this should be improved...
|
|
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
FROM node:16-slim as app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY --from=install /usr/src/app/ /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
|
|
|
|
CMD ["node", "index.js"]
|