Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -6,19 +6,20 @@ ENV PYTHONUNBUFFERED=1 \
|
|
6 |
POETRY_VIRTUALENVS_CREATE=false \
|
7 |
POETRY_VERSION=1.8.3
|
8 |
|
9 |
-
RUN useradd -m -u 1000 user
|
10 |
-
USER user
|
11 |
-
ENV HOME=/home/user \
|
12 |
-
PATH=/home/user/.local/bin:$PATH
|
13 |
|
14 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
15 |
build-essential \
|
16 |
libpq-dev \
|
17 |
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
-
COPY
|
20 |
WORKDIR $HOME/app
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
RUN pip install "poetry==$POETRY_VERSION" && \
|
23 |
poetry export --without-hashes --format requirements.txt --output requirements.txt && \
|
24 |
python3 -m pip wheel --no-cache-dir --no-deps -w /app/wheels -r requirements.txt
|
|
|
6 |
POETRY_VIRTUALENVS_CREATE=false \
|
7 |
POETRY_VERSION=1.8.3
|
8 |
|
|
|
|
|
|
|
|
|
9 |
|
10 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
11 |
build-essential \
|
12 |
libpq-dev \
|
13 |
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
+
COPY . $HOME/app
|
16 |
WORKDIR $HOME/app
|
17 |
|
18 |
+
RUN useradd -m -u 1000 user
|
19 |
+
USER user
|
20 |
+
ENV HOME=/home/user \
|
21 |
+
PATH=/home/user/.local/bin:$PATH
|
22 |
+
|
23 |
RUN pip install "poetry==$POETRY_VERSION" && \
|
24 |
poetry export --without-hashes --format requirements.txt --output requirements.txt && \
|
25 |
python3 -m pip wheel --no-cache-dir --no-deps -w /app/wheels -r requirements.txt
|