dockerfile-fix4
This commit is contained in:
@@ -17,12 +17,12 @@ FROM python:slim
|
||||
WORKDIR /app
|
||||
|
||||
# Copy only necessary files from the builder stage
|
||||
# COPY --from=builder /usr/local/lib/python/dist-packages /usr/local/lib/python/dist-packages
|
||||
# COPY --from=builder /usr/local/lib/python3/dist-packages /usr/local/lib/python3/dist-packages
|
||||
COPY --from=builder /usr/local/lib/python3.*/dist-packages /usr/local/lib/python3.*/dist-packages
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install redis[hiredis]
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["python", "main.py"]
|
Reference in New Issue
Block a user