added deploy methods
This commit is contained in:
3
deploy.sh
Normal file
3
deploy.sh
Normal file
@ -0,0 +1,3 @@
|
||||
podman stop imposter
|
||||
podman rm imposter
|
||||
podman build -t imposter .f ./dockerfile . && podman run --name imposter -d -p 3050:3000 imposter
|
||||
16
dockerfile
Normal file
16
dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:latest
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./index.html .
|
||||
COPY ./index.js .
|
||||
COPY ./style.css .
|
||||
COPY ./backend.js .
|
||||
COPY ./package.json .
|
||||
COPY ./package-lock.json .
|
||||
COPY ./session .
|
||||
COPY ./game .
|
||||
|
||||
RUN npi i
|
||||
EXPOSE 3000
|
||||
CMD ["node", "backend.js"]
|
||||
|
||||
Reference in New Issue
Block a user