mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
This is really just needed so as to more easily make the packaged (pypi) version work. The 'invoke' command (which is mapped to 'wger' when packaged or installed via pip) needs a tasks.py file. Since the wger folder gets installed as a python package, it is easier if we just move that file there as well.
38 lines
993 B
Docker
38 lines
993 B
Docker
#
|
|
# Dockerimage for wger development
|
|
#
|
|
# Please consult the documentation for usage
|
|
# docker build -t wger/devel .
|
|
# docker run -ti --name wger.devel --publish 8000:8000 wger/devel
|
|
# (in docker) source ~/venv/bin/activate
|
|
# (in docker) python manage.py runserver 0.0.0.0:8000
|
|
#
|
|
#
|
|
|
|
|
|
FROM wger/base
|
|
|
|
MAINTAINER Roland Geider <roland@geider.net>
|
|
EXPOSE 8000
|
|
|
|
# Install dependencies
|
|
RUN apt-get install -y vim
|
|
|
|
# Set up the application
|
|
USER wger
|
|
RUN git clone https://github.com/rolandgeider/wger.git /home/wger/src
|
|
|
|
WORKDIR /home/wger/src
|
|
RUN virtualenv --python python3 /home/wger/venv
|
|
RUN . /home/wger/venv/bin/activate \
|
|
&& pip install --upgrade pip \
|
|
&& pip install -r requirements_devel.txt \
|
|
&& invoke --root wgercreate_settings \
|
|
--settings-path /home/wger/src/settings.py \
|
|
--database-path /home/wger/db/database.sqlite \
|
|
&& invoke --root wger bootstrap_wger \
|
|
--settings-path /home/wger/src/settings.py \
|
|
--no-start-server
|
|
|
|
|
|
CMD ["/bin/bash"] |