Skip to content

Commit

Permalink
Update start point in osmcha
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Sep 6, 2023
1 parent 218373d commit 56bcee6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compose/osmcha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ services:
context: ../images/osmcha
dockerfile: Dockerfile
ports:
- '80:80'
- '8000:8000'
env_file:
- ../envs/.env.osmcha
7 changes: 6 additions & 1 deletion images/osmcha/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ENV BACKEND_VERSION v4.17.0
RUN git clone https://github.com/willemarcel/osmcha-django .
RUN git checkout $BACKEND_VERSION
RUN pip3 install -r requirements/production.txt
RUN pip3 install -r requirements/local.txt

RUN curl -o /usr/local/bin/watchbot https://s3.amazonaws.com/watchbot-binaries/linux/v5.0.0/watchbot
RUN chmod +x /usr/local/bin/watchbot
Expand All @@ -36,5 +37,9 @@ RUN curl -sL https://github.com/mapbox/decrypt-kms-env/archive/v1.0.3.tar.gz | t
ENV DJANGO_ROOT /app
ENV DJANGO_SETTINGS_MODULE config.settings.production
ENV C_FORCE_ROOT True

RUN echo "alias python=python3" >> ~/.bashrc
RUN echo "alias pip=pip3" >> ~/.bashrc

COPY ./start.sh .
ENTRYPOINT ["./start.sh"]
CMD ./start.sh
2 changes: 1 addition & 1 deletion images/osmcha/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
python3 manage.py migrate
python3 manage.py runserver_plus 0.0.0.0:8000
python3 manage.py runserver 0.0.0.0:8000 --nothreading --noreload

0 comments on commit 56bcee6

Please sign in to comment.