Skip to content

Commit

Permalink
Fix docker-compose.yml and bump to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolphpienaar committed May 2, 2024
1 parent dc50121 commit 12eef67
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ENV DEBIAN_FRONTEND=noninteractive

COPY requirements.txt /tmp/requirements.txt
RUN pip install --upgrade pip
RUN pip install -U email-validator
RUN pip install -r /tmp/requirements.txt && rm -v /tmp/requirements.txt
# RUN pip install tzlocal
# RUN pip install ipython
Expand All @@ -44,10 +45,10 @@ RUN pip install -r /tmp/requirements.txt && rm -v /tmp/requirements.txt
COPY ./pfms /app

RUN apt update && \
apt -y upgrade && \
apt-get install -y apt-transport-https && \
apt -y install dcmtk && \
apt -y install ssh iputils-ping && \
apt -y install vim telnet netcat-traditional procps binutils
apt -y install vim telnet netcat-traditional procps

# Create the 'localuser' group with specified GID
RUN groupadd -g 1102 localuser
Expand Down
19 changes: 16 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,32 @@ version: '3.9'

services:
pfms:
build: .
build:
context: .
dockerfile: Dockerfile
args:
UID: ${UID}
http_proxy: ${HTTP_PROXY}
image: local/pfms
container_name: pfms
volumes:
- ./pfms:/pfms
# command: uvicorn main:app --reload
- ./pfms:/app
command: /start-reload.sh
environment:
MAX_WORKERS: 1
SESSION_USERNAME: localuser
ports:
- "2024:2024"
networks:
local:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
privileged: true

networks:
local:
2 changes: 1 addition & 1 deletion pfms/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.0.2
1.0.4

0 comments on commit 12eef67

Please sign in to comment.