Update Section_08/main.sh, Section_08/Dockerfile
This commit is contained in:
16
Section_08/Dockerfile
Normal file
16
Section_08/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:16-alpine
|
||||
|
||||
RUN apk update
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app/
|
||||
|
||||
RUN npm i -g npm@latest
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
RUN npm i -g serve
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["serve", "-s", "/app/build/"]
|
||||
Reference in New Issue
Block a user