Add frontend Dockerfile
This commit is contained in:
parent
f9f1698355
commit
1c310116ed
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM node AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm install
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.19-alpine
|
||||
COPY --from=build /app/public /usr/share/nginx/html
|
Loading…
Reference in a new issue