focus/frontend/Dockerfile

19 lines
285 B
Docker
Raw Permalink Normal View History

2024-01-03 18:13:54 +01:00
FROM node:20 as frontend-builder
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM node:20-alpine
COPY --from=frontend-builder /app .
EXPOSE 4173
2024-01-10 00:39:55 +01:00
ENV PUBLIC_BACKEND_URL=http://localhost:3000
2024-01-03 18:13:54 +01:00
CMD ["npm", "run", "preview", "--", "--port", "4173", "--host", "0.0.0.0"]