mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-31 06:41:05 +03:00
update Dockerfile
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,7 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
#TEMP IMAGE
|
FROM python:3.10-alpine
|
||||||
FROM python:3.10-alpine as builder
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -10,20 +9,7 @@ RUN apk update && \
|
|||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
#FINAL IMAGE
|
|
||||||
FROM python:3.10-alpine
|
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY --from=builder /app/wheels /wheels
|
|
||||||
COPY --from=builder /app/requirements.txt .
|
|
||||||
|
|
||||||
RUN pip install --no-cache /wheels/*
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user