mirror of
https://github.com/KevinMidboe/planetposen-frontend.git
synced 2025-10-28 21:00:12 +00:00
19 lines
304 B
Docker
19 lines
304 B
Docker
# Build the project
|
|
FROM node:18-alpine AS builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN yarn
|
|
RUN yarn build
|
|
|
|
FROM node:18-alpine
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/build build/
|
|
COPY --from=builder /app/node_modules node_modules/
|
|
COPY package.json .
|
|
|
|
EXPOSE 3000
|
|
ENV NODE_ENV=production
|
|
|
|
CMD [ "node", "build" ]
|