Added basics for deployment via Docker
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Stage 1: Build
|
||||
FROM node:alpine AS build
|
||||
WORKDIR /build
|
||||
|
||||
## Install app dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
## Bundle app source
|
||||
COPY . .
|
||||
|
||||
## Compile App
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Package up with the webserver
|
||||
FROM nginx:alpine AS final
|
||||
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user