forked from noxious/client
idk
This commit is contained in:
30
Dockerfile
30
Dockerfile
@ -1,30 +0,0 @@
|
||||
# Build stage
|
||||
FROM node:14 as build-stage
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json and package-lock.json (if available)
|
||||
COPY package*.json ./
|
||||
|
||||
# Install project dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy project files and folders to the current working directory (i.e. 'app' folder)
|
||||
COPY . /usr/src/app
|
||||
|
||||
# Build app for production with minification
|
||||
RUN npm run build-ntc
|
||||
|
||||
# Production stage
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
|
||||
# Copy built assets from build-stage
|
||||
COPY --from=build-stage /usr/src/app/dist /var/www/html
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Start Nginx and keep it running in the foreground
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user