-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from labhackercd/dev
v1.0.0
- Loading branch information
Showing
406 changed files
with
27,131 additions
and
558 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
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,7 +1,8 @@ | ||
[flake8] | ||
exclude = | ||
.git, | ||
node_modules/, | ||
node_modules/*, | ||
__pycache__, | ||
src/manage.py, | ||
migrations/, | ||
*/migrations/*, | ||
src/public/* |
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
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
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,22 +1,22 @@ | ||
FROM labhackercd/alpine-python3-nodejs | ||
|
||
ENV BUILD_PACKAGES postgresql-dev postgresql-client gettext | ||
ENV BUILD_PACKAGES postgresql-dev postgresql-client gettext freetype-dev libpng-dev openblas-dev | ||
|
||
RUN apk add --update --no-cache $BUILD_PACKAGES | ||
RUN mkdir -p /var/labhacker/wikilegis | ||
RUN mkdir -p /var/labhacker/new-wikilegis | ||
|
||
ADD . /var/labhacker/wikilegis | ||
WORKDIR /var/labhacker/wikilegis | ||
ADD . /var/labhacker/new-wikilegis | ||
WORKDIR /var/labhacker/new-wikilegis | ||
|
||
RUN pip install 'pipenv==8.1.2' psycopg2 gunicorn && \ | ||
pipenv install --system && \ | ||
rm -r /root/.cache | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -U pipenv psycopg2 gunicorn | ||
|
||
RUN npm install | ||
RUN pipenv install --system | ||
|
||
RUN python3 src/manage.py compress --force && \ | ||
python3 src/manage.py collectstatic --no-input && \ | ||
python3 src/manage.py compilemessages | ||
RUN npm install && \ | ||
npm rebuild node-sass --force | ||
|
||
RUN chmod 755 start.sh | ||
|
||
EXPOSE 8000 | ||
CMD ["python3", "src/manage.py", "runserver", "0.0.0.0:8000"] |
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
Oops, something went wrong.