This commit is contained in:
parent
0cf8992e8a
commit
cf412f7f53
2 changed files with 38 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -1,11 +1,11 @@
|
|||
FROM python:3.10-alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
gcc \
|
||||
libressl-dev \
|
||||
musl-dev \
|
||||
libffi-dev \
|
||||
tzdata \
|
||||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal \
|
||||
&& source $HOME/.cargo/env \
|
||||
&& curl -sSL https://install.python-poetry.org | python3 - --preview \
|
||||
|
|
@ -16,4 +16,13 @@ RUN apk add --no-cache \
|
|||
gcc \
|
||||
libressl-dev \
|
||||
musl-dev \
|
||||
libffi-dev
|
||||
libffi-dev \
|
||||
&& mkdir /app
|
||||
|
||||
ENV TZ Europe/Madrid
|
||||
|
||||
COPY poetry.lock /app
|
||||
COPY pyproject.toml /app
|
||||
WORKDIR /app
|
||||
RUN poetry config virtualenvs.create false \
|
||||
&& poetry install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue