Added dockerfile
This commit is contained in:
parent
413dd1de7d
commit
640f94d517
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM node:16-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
RUN npm install -g http-server
|
||||||
|
|
||||||
|
EXPOSE 9001
|
||||||
|
|
||||||
|
CMD [ "http-server", "build", "-p", "9001" ]
|
||||||
Loading…
x
Reference in New Issue
Block a user