20 lines
325 B
Docker
20 lines
325 B
Docker
# Use a slim Python base
|
|
FROM python:3.10-slim
|
|
|
|
# Install Python dependencies
|
|
RUN pip install Flask requests tabulate pdf417 qrcode
|
|
|
|
WORKDIR /app/static
|
|
RUN mkdir fonts
|
|
COPY fonts/* ./fonts/
|
|
|
|
|
|
# Copy the app
|
|
WORKDIR /app
|
|
RUN mkdir fonts
|
|
COPY main.py .
|
|
|
|
# Expose the port and run the app
|
|
EXPOSE 8080
|
|
CMD ["python", "main.py"]
|