get shit on
This commit is contained in:
parent
27a1edd71f
commit
faf9b7c1c6
@ -1,7 +1,9 @@
|
||||
# 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 ./
|
||||
@ -19,7 +21,7 @@ RUN npm run build-ntc
|
||||
FROM nginx:stable-alpine as production-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 80
|
||||
|
Loading…
x
Reference in New Issue
Block a user