Zaws / Dockerfile
SilentWraith's picture
Initial commit
6f8bc75
raw
history blame
396 Bytes
FROM python:3.11 AS builder
WORKDIR /app
RUN python3 -m venv venv
ENV VIRTUAL_ENV=/app/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt .
RUN pip install -r requirements.txt
# Stage 2
FROM python:3.11 AS runner
WORKDIR /app
COPY --from=builder /app/venv venv
ENV VIRTUAL_ENV=/app/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
EXPOSE 8000
CMD [ "python screenshot/main.py" ]