added deploy methods

This commit is contained in:
adrian
2025-12-10 21:53:05 +01:00
parent c58d1141da
commit 5a3f0db916
2 changed files with 19 additions and 0 deletions

3
deploy.sh Normal file
View 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
View 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"]