Files
release11-tools/Frontend/Dockerfile
widlam c0fcd53d35 Added dev server options
Implemented basic structure for mock service
2023-06-16 14:49:56 +02:00

31 lines
495 B
Docker

FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build
FROM nginx:stable-alpine as production-stage
RUN mkdir /app
RUN apk add --no-cache tzdata
ENV TZ Europe/Warsaw
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 443
FROM node:latest as dev
WORKDIR /app
COPY package*.json ./
RUN npm install
ENV HOST=0.0.0.0
COPY . .
EXPOSE 8080
CMD ["npm", "run", "dev"]