Skip to content

Commit

Permalink
Corregir Dockerfile instale requirements.txt y test-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jorueda committed Mar 20, 2023
1 parent aa01f6d commit 962a85d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@ FROM python:slim-buster

LABEL maintainer="Python Barranquilla <[email protected]>"

ARG LEKTOR_VERSION="3.1.3"
WORKDIR /app

RUN apt-get update && \
apt-get install -y python-dev libssl-dev libffi-dev imagemagick && \
rm -rf /var/lib/apt/lists/*

RUN pip install "Lektor==$LEKTOR_VERSION"
RUN pip install --upgrade pip

COPY . /app/
# Production requirements
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt

WORKDIR /app
# Testing requirements
# COPY ./test-requirements.txt /app/test-requirements.txt
# RUN pip install -r test-requirements.txt

COPY . /app/

ENTRYPOINT [ "lektor" ]
CMD ["server", "-h", "0.0.0.0"]

0 comments on commit 962a85d

Please sign in to comment.