finished creating dockerfile

This commit is contained in:
2021-07-24 18:22:15 +09:00
parent c6cf7cc88b
commit 67c75578e5
2 changed files with 73 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:14
WORKDIR /tmp
COPY . .
RUN ["./build_script.sh"]
FROM node:14
WORKDIR /usr/src/app
COPY --from=0 /tmp/build .
RUN npm install
EXPOSE 8080
CMD [ "node", "server/index.js" ]