1
0
forked from noxious/client

get shit on

This commit is contained in:
Dennis Postma 2024-07-10 21:02:33 +02:00
parent 27a1edd71f
commit faf9b7c1c6

View File

@ -1,7 +1,9 @@
# Build stage # Build stage
FROM node:14 as build-stage FROM node:14 as build-stage
WORKDIR /app RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Copy package.json and package-lock.json (if available) # Copy package.json and package-lock.json (if available)
COPY package*.json ./ COPY package*.json ./
@ -19,7 +21,7 @@ RUN npm run build-ntc
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine as production-stage
# Copy built assets from build-stage # Copy built assets from build-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /usr/src/app/dist /usr/share/nginx/html
# Expose port 80 # Expose port 80
EXPOSE 80 EXPOSE 80