Skip to content

Commit 2fe9344

Browse files
chore: update pipfile and refactor docker
1 parent 66e23dd commit 2fe9344

3 files changed

Lines changed: 294 additions & 25 deletions

File tree

Dockerfile

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
FROM python:3.13-trixie AS runtime
22

3-
4-
# System upgrade
5-
RUN apt-get update -y
6-
RUN apt-get upgrade -y
7-
83
# Install dependencies
9-
RUN apt-get install -y curl iptables libdevmapper-dev libpq-dev python3-dev
10-
11-
# Clean Up
12-
RUN apt-get clean
13-
RUN rm -rf /var/lib/apt/lists/*
4+
RUN apt-get update &&\
5+
apt-get install --no-install-recommends -y curl iptables libdevmapper-dev libpq-dev python3-dev &&\
6+
apt-get clean &&\
7+
rm -rf /var/lib/apt/lists/*
148

159
FROM runtime AS build
1610

17-
# Upgrade PIP
18-
RUN pip install --upgrade pip
19-
20-
# Install Pipenv
21-
RUN pip install pipenv
11+
# Install Pipenv & Setup install dir
12+
RUN pip install --no-cache-dir pipenv &&\
13+
mkdir -p /app
2214

23-
# Setup install dir
24-
RUN mkdir -p /app
2515
WORKDIR /app
2616

2717
# Load dependencies
@@ -36,4 +26,4 @@ COPY ./src ./
3626

3727
# Entrypoint
3828
STOPSIGNAL SIGINT
39-
CMD python main.py --config env
29+
CMD [ "python", "main.py", "--config", "env" ]

Pipfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
boto3 = "*"
8-
docker = "*"
9-
psycopg2-binary = "*"
7+
boto3 = "1.42.16"
8+
docker = "7.1.0"
9+
psycopg2-binary = "2.9.11"
1010

1111
[dev-packages]
1212

0 commit comments

Comments
 (0)