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