Files
CoreID/Dockerfile

18 lines
440 B
Docker
Raw Normal View History

2026-09-21 23:34:05 -05:00
FROM node:16-bullseye
2022-06-25 20:55:06 -05:00
2026-09-21 23:34:05 -05:00
WORKDIR /app
2022-06-25 20:55:06 -05:00
2026-09-21 23:34:05 -05:00
# Dependencies first so the install layer caches independently of app source.
COPY package.json yarn.lock ./
2022-06-25 20:55:06 -05:00
2026-09-21 23:34:05 -05:00
RUN yarn install --frozen-lockfile --network-timeout 600000 \
&& yarn cache clean
2022-06-25 20:55:06 -05:00
2026-09-21 23:34:05 -05:00
COPY . .
2022-06-25 20:55:06 -05:00
2026-09-21 23:34:05 -05:00
# Config comes from the environment in k8s; libflitter still expects the file
# to exist, so ship an empty one. (.dockerignore keeps the real .env out.)
2022-06-25 20:55:06 -05:00
RUN touch /app/.env
CMD ["node", "index.js"]