Dockerize
This commit is contained in:
parent
35b707b339
commit
72a755240b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
.idea/
|
||||
bun.lockb
|
||||
node_modules/
|
||||
public/css/styles.css
|
||||
public/css/styles.css
|
||||
package-lock.json
|
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- .:/app
|
||||
command: ["bun", "app.js"]
|
Loading…
x
Reference in New Issue
Block a user