Last active
September 11, 2019 14:59
-
-
Save skonik/a27fc05fb41e8dd9031cb4cfe710a957 to your computer and use it in GitHub Desktop.
Revisions
-
skonik revised this gist
Sep 11, 2019 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ FROM alpine:3.10 # Install runtime libs RUN apk add python3=3.6.8-r2 \ libpq \ libjpeg-turbo # Enable non buffered output into tty ENV PYTHONUNBUFFERED 1 # Set default lang @@ -21,3 +26,6 @@ RUN apk --update --virtual build-deps \ # update index and use virtual d && rm -rf /root/.cache/* # remove pip and pipenv cache COPY . /app ENTRYPOINT ["sh", "docker-entrypoint.sh"] -
skonik revised this gist
Aug 12, 2019 . 1 changed file with 12 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,13 +9,15 @@ WORKDIR /app/ COPY Pipfile Pipfile.lock /app/ RUN apk --update --virtual build-deps \ # update index and use virtual deps add py3-pip \ # pip3 python3-dev=3.6.8-r2 \ # python3.6 with .c headers build-base \ # gcc + musl-dev(lib-c implementation) postgresql-dev \ # postgres lib jpeg-dev zlib-dev \ # pillow deps && pip3 install pipenv \ && pipenv install --system --deploy \ # install into system && apk del build-deps \ # delete virtual deps (remove gcc, libc, etc) && rm -rf /root/.cache/* # remove pip and pipenv cache COPY . /app -
skonik created this gist
Aug 12, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ FROM alpine:3.10 # Enable non buffered output into tty ENV PYTHONUNBUFFERED 1 # Set default lang ENV LANG C.UTF-8 WORKDIR /app/ COPY Pipfile Pipfile.lock /app/ RUN apk --update --virtual build-deps \ add py3-pip \ # pip3 python3-dev=3.6.8-r2 \ # python3.6 with .c headers build-base \ # gcc + musl-dev(lib-c implementation) postgresql-dev \ # postgres lib jpeg-dev zlib-dev \ # pillow deps && pip3 install pipenv \ && pipenv install --system --deploy \ # install into system && apk del build-deps \ # delete deps (gcc, libc, etc) && rm -rf /root/.cache/* # remove pip and pipenv cache