|
|
@@ -1,20 +1,13 @@ |
|
|
|
FROM python:3.6 |
|
|
|
|
|
|
|
MAINTAINER "LessPass <contact@lesspass.com>" |
|
|
|
|
|
|
|
LABEL maintainer="LessPass <contact@lesspass.com>" |
|
|
|
LABEL name="LessPass Backend" |
|
|
|
|
|
|
|
RUN mkdir /app |
|
|
|
WORKDIR /app |
|
|
|
COPY requirements.txt /app |
|
|
|
RUN mkdir /opt/backend |
|
|
|
WORKDIR /opt/backend |
|
|
|
COPY requirements.txt /opt/backend |
|
|
|
RUN python -m pip install --upgrade pip |
|
|
|
RUN python -m pip install -r requirements.txt |
|
|
|
|
|
|
|
COPY . /app |
|
|
|
COPY . /opt/backend |
|
|
|
RUN python --version |
|
|
|
|
|
|
|
EXPOSE 8000 |
|
|
|
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"] |
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/backend/entrypoint.sh"] |
|
|
|
CMD ["gunicorn", "lesspass.wsgi:application", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "debug", "--bind", "0.0.0.0:8000"] |