-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
11 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
*.py[co] | ||
*.pyc | ||
settings.pyc | ||
settings_local.py | ||
*.ged | ||
/tmp | ||
/files | ||
/data | ||
tmp/ | ||
files/ | ||
data/ |
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
FROM python:2.7 | ||
|
||
COPY ./ /app/ | ||
FROM python:2.7-alpine | ||
|
||
WORKDIR /app/ | ||
RUN pip install -r reqs.frozen.pip | ||
RUN mkdir -p /static && python manage.py collectstatic -c --noinput | ||
COPY ./reqs.frozen.pip /app/ | ||
ENV LIBRARY_PATH=/lib:/usr/lib | ||
RUN apk --update add jpeg-dev zlib-dev build-base mariadb-dev && \ | ||
pip install -r reqs.frozen.pip && \ | ||
apk add mariadb-client-libs && \ | ||
apk del build-base mariadb-dev | ||
|
||
RUN adduser --disabled-password --gecos '' gedgo | ||
RUN chown -R gedgo:gedgo /app | ||
USER gedgo | ||
COPY ./ /app/ | ||
RUN mkdir -p /static && python manage.py collectstatic -c --noinput |