Add dockerfile
This commit is contained in:
parent
88371d6509
commit
3f78eb1a32
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
!devenv.lock
|
||||
!devenv.nix
|
||||
!devenv.yaml
|
||||
!docker-compose.yml
|
||||
|
||||
!api/
|
||||
!api/package.json
|
||||
@ -10,5 +11,7 @@
|
||||
!api/README.md
|
||||
!api/CLAUDE.md
|
||||
!api/tsconfig.json
|
||||
!api/Dockerfile
|
||||
!api/.dockerignore
|
||||
!api/src/
|
||||
!api/src/**
|
||||
|
6
api/.dockerignore
Normal file
6
api/.dockerignore
Normal file
@ -0,0 +1,6 @@
|
||||
*
|
||||
!package.json
|
||||
!bun.lock
|
||||
!tsconfig.json
|
||||
!src/
|
||||
!src/**
|
34
api/.gitignore
vendored
34
api/.gitignore
vendored
@ -1,34 +0,0 @@
|
||||
# dependencies (bun install)
|
||||
node_modules
|
||||
|
||||
# output
|
||||
out
|
||||
dist
|
||||
*.tgz
|
||||
|
||||
# code coverage
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# logs
|
||||
logs
|
||||
_.log
|
||||
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# caches
|
||||
.eslintcache
|
||||
.cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# IntelliJ based IDEs
|
||||
.idea
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
14
api/Dockerfile
Normal file
14
api/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM oven/bun:1.2.19-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
COPY package.json bun.lock ./
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "src/index.ts"]
|
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18beta2-alpine
|
||||
container_name: postgres-dev
|
||||
environment:
|
||||
POSTGRES_DB: system
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user