Dockerization
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
9
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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"
|
||||||
@@ -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"
|
||||||
@@ -8,4 +9,4 @@
|
|||||||
"start": "bun run index.ts"
|
"start": "bun run index.ts"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user