Dockerization

This commit is contained in:
2024-02-03 14:53:49 +03:00
parent 532e03e900
commit 6ef18366f0
4 changed files with 24 additions and 1 deletions

2
.gitignore vendored
View File

@@ -167,3 +167,5 @@ dist
.yarn/build-state.yml .yarn/build-state.yml
.yarn/install-state.gz .yarn/install-state.gz
.pnp.\* .pnp.\*
.idea/

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM oven/bun:1
LABEL authors="anatolykopyl"
WORKDIR /usr/node/app
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile
COPY . .

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: '3'
services:
nerdo-webcam:
image: git.radner.ru/anatolykopyl/flexpatrol-ru-form-handler:latest
container_name: flexpatrol-ru-form-handler
working_dir: /usr/node/app
ports:
- "3002:3000"
command: >
sh -c "bun run index.ts"

View File

@@ -1,5 +1,6 @@
{ {
"name": "flexpatrol.ru-form-handler", "name": "flexpatrol.ru-form-handler",
"private": true,
"module": "index.ts", "module": "index.ts",
"devDependencies": { "devDependencies": {
"bun-types": "^0.5.0" "bun-types": "^0.5.0"