Run please

This commit is contained in:
Michał Gdula 2023-09-12 12:13:44 +01:00
parent b53e58bd0d
commit 0ea8ab8cf1
8 changed files with 26 additions and 18 deletions

View file

@ -1,18 +1,27 @@
# syntax=docker/dockerfile:1
FROM alpine:3.18.2
RUN mkdir /app && mkdir /app/data
# Make a directory for the app
RUN mkdir /app
RUN mkdir /app/lynxie
WORKDIR /app
COPY ./lynxie /app
# Copy the app files
COPY ./lynxie/ /app/lynxie/
COPY ./poetry.lock /app
COPY ./pyproject.toml /app
# Install dependencies
RUN apk update
RUN apk --no-cache add python3 py3-pip curl
# Install poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
RUN /root/.local/bin/poetry install
RUN /root/.local/bin/poetry run python3 database.py
RUN export PATH="/root/.local/bin:$PATH"
CMD ["/root/.local/bin/poetry", "run", "python3", "main.py"]
# Install the app
RUN poetry install
RUN poetry run python3 database.py
# Run the app
CMD ["poetry", "run", "python3", "main.py"]