Dockerize

This commit is contained in:
Aidan 2024-12-17 00:00:40 -05:00
parent 35b707b339
commit 72a755240b
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1
3 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
bun.lockb
node_modules/
public/css/styles.css
package-lock.json

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM node:22
WORKDIR /app
COPY package.json bun.lockb ./
RUN npm install -g bun && bun install
COPY . .
RUN bun run build:css
EXPOSE 3000
CMD ["bun", "app.js"]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
services:
app:
build: .
ports:
- "3000:3000"
volumes:
- .:/app
command: ["bun", "app.js"]