Skip to content

Commit 169a633

Browse files
committed
fix dockerfile
1 parent bdff90a commit 169a633

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Dockerfile

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
FROM python:3.11-alpine
22

3-
ENV PYTHONDONTWRITEBYTECODE 1
4-
ENV PYTHONUNBUFFERED 1
3+
ENV PYTHONDONTWRITEBYTECODE=1
4+
ENV PYTHONUNBUFFERED=1
55
ENV PIP_DOWNLOAD_CACHE=/noop/
66

77
WORKDIR /app
88

9-
COPY requirements.txt .
9+
COPY . .
10+
11+
RUN \
12+
echo 'installing dependencies' && \
13+
apk add --no-cache \
14+
python3-dev \
15+
py3-psycopg2 \
16+
py3-pip \
17+
py3-virtualenv
1018

1119
RUN \
1220
echo 'installing pip requirements' && \
13-
python -m virtualenv /venv && \
21+
python -m venv /venv && \
1422
/venv/bin/pip install --upgrade pip && \
1523
/venv/bin/pip install setuptools wheel && \
1624
/venv/bin/pip install -r /app/requirements.txt && \
1725
rm -rf $PIP_DOWNLOAD_CACHE
1826

19-
COPY . .
20-
2127
EXPOSE 443
2228

2329
VOLUME /ssl

0 commit comments

Comments
 (0)