forked from PyBAQ/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corregir Dockerfile instale requirements.txt y test-requirements.txt
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"] |