summaryrefslogblamecommitdiff
path: root/Dockerfile
blob: 446d87f0af1cb11c0a25456960ada11b07def74a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                      

                                          
FROM archlinux:latest
LABEL maintainer="me@jrdemasi.com"

RUN pacman -Syyu --noconfirm
RUN pacman -S --noconfirm python python-pip 
WORKDIR /code
COPY ./requirements.txt /code/
ENV VIRTUAL_ENV=/code/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install -r /code/requirements.txt
COPY . /code/
RUN /code/manage.py migrate
ENV DJANGO_SUPERUSER_PASSWORD=admin
RUN /code/manage.py createsuperuser --noinput --username admin --email admin@admin.com
EXPOSE 8000
CMD /code/manage.py runserver 0.0.0.0:8000