Skip to content

Commit

Permalink
feat(docker): added dockerfile and a docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed May 1, 2024
1 parent 8f8a319 commit dda30fb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.12-slim as BASE

COPY . /voe
WORKDIR /voe

SHELL ["/bin/bash", "-c"]

RUN pip install .

CMD ["bash"]
19 changes: 19 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: "3.7"

services:
voe:
build:
context: .
dockerfile: Dockerfile
command: ["/bin/bash"]
deploy:
replicas: 1
resources:
reservations:
cpus: "0.1"
memory: "128M"
limits:
cpus: "0.5"
memory: "256M"
restart_policy:
condition: on-failure

0 comments on commit dda30fb

Please sign in to comment.