This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
fotochallenge/Containerfile

19 lines
394 B
Plaintext
Raw Normal View History

2024-08-17 16:37:13 +02:00
FROM node:22-alpine AS builder
2024-07-17 00:26:05 +02:00
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
2024-08-17 16:37:13 +02:00
FROM node:22-alpine
2024-07-17 00:26:05 +02:00
WORKDIR /app
2024-08-16 14:41:33 +02:00
RUN chown -R node:node /app
USER node:node
COPY ./container/entrypoint.sh /entrypoint.sh
2024-07-17 00:26:05 +02:00
COPY package.json .
COPY --from=builder /app/node_modules ./node_modules
2024-07-17 00:26:05 +02:00
COPY --from=builder /app/build ./build
2024-08-16 14:41:33 +02:00
ENTRYPOINT ["sh", "/entrypoint.sh"]