feat: dockerize

This commit is contained in:
b1ek 2024-05-11 21:54:13 +10:00
parent c9b9fe1eab
commit 6f69779ec3
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules
dist
store
config.json
docker-compose.yml

View File

@ -0,0 +1,11 @@
services:
server:
image: node:18-alpine
volumes:
- '.:/opt/code'
working_dir: '/opt/code'
entrypoint: ['/opt/code/docker-start.sh']
ports:
- 8080:80
environment:
HOST: 0.0.0.0

4
docker-start.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
yarn
yarn start