broken Dockerfile again
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,14 +1,16 @@
|
|||||||
FROM debian
|
FROM debian
|
||||||
|
RUN mkdir /srv/app
|
||||||
|
RUN mkdir /srv/venv
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y default-libmysqlclient-dev gcc
|
RUN apt-get install -y default-libmysqlclient-dev gcc
|
||||||
RUN apt-get install -y postgresql postgresql-contrib libpq-dev python-psycopg2
|
RUN apt-get install -y postgresql postgresql-contrib libpq-dev python-psycopg2
|
||||||
RUN apt-get update && apt-get install \
|
RUN apt-get update && apt-get install \
|
||||||
-y --no-install-recommends python3 python3-virtualenv python3-dev
|
-y --no-install-recommends python3 python3-virtualenv python3-dev
|
||||||
RUN apt-get update && apt-get install libssl-dev
|
RUN apt-get update && apt-get install libssl-dev
|
||||||
RUN python3 -m virtualenv --python=/usr/bin/python3 /opt/venv
|
RUN python3 -m virtualenv --python=/srv/venv/
|
||||||
COPY ./requirements.txt /usr/src/app/
|
COPY ./requirements.txt /srv/app/
|
||||||
WORKDIR /usr/src/app/
|
WORKDIR /srv/app/
|
||||||
RUN . /opt/venv/bin/activate && pip install -r requirements.txt
|
RUN . /srv/venv/bin/activate && pip install -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["python", "./manage.py", "runserver"]
|
CMD ["init.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user