Fix Dockerfile

This commit is contained in:
Michał Gdula 2023-09-12 11:42:54 +01:00
parent d28a759f8e
commit 3cc51d4bbf

View file

@ -1,17 +1,16 @@
# syntax=docker/dockerfile:1
FROM alpine:3.18.2
EXPOSE 8000
RUN mkdir /app && mkdir /app/data
WORKDIR /app
COPY ./lynxie /app
COPY ./requirements.txt /app
RUN apk update && \
apk --no-cache add python3 py3-pip && \
pip install --no-cache-dir -r requirements.txt \
RUN apk update
RUN apk --no-cache add python3 py3-pip
RUN pip install --no-cache-dir -r requirements.txt
RUN python3 database.py
CMD ["python3", "main.py"]