skrill-frontend/Dockerfile

28 lines
350 B
Docker
Raw Normal View History

FROM node:alpine As builder
2024-07-28 03:04:23 -06:00
WORKDIR /app
2024-07-28 03:04:23 -06:00
COPY package.json package-lock.json ./
RUN npm install
# COPY . .
2024-07-28 03:04:23 -06:00
RUN npm run build --prod
FROM nginx:latest
COPY dist/angular-starter /usr/share/nginx/html
COPY config/default.conf /etc/nginx/conf.d/default.conf
# COPY --from=builder /usr/src/app/dist/angular-starter/ /usr/share/nginx/html
2024-07-28 03:04:23 -06:00