mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-30 23:33:14 +00:00
I think this is all now
This commit is contained in:
parent
0ea8ab8cf1
commit
666cdb113e
5 changed files with 11 additions and 12 deletions
|
@ -7,7 +7,7 @@ RUN mkdir /app/lynxie
|
|||
WORKDIR /app
|
||||
|
||||
# Copy the app files
|
||||
COPY ./lynxie/ /app/lynxie/
|
||||
COPY ./lynxie /app/lynxie
|
||||
COPY ./poetry.lock /app
|
||||
COPY ./pyproject.toml /app
|
||||
|
||||
|
@ -17,11 +17,10 @@ RUN apk --no-cache add python3 py3-pip curl
|
|||
|
||||
# Install poetry
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
RUN export PATH="/root/.local/bin:$PATH"
|
||||
|
||||
# Install the app
|
||||
RUN poetry install
|
||||
RUN poetry run python3 database.py
|
||||
RUN /root/.local/bin/poetry install
|
||||
RUN /root/.local/bin/poetry run python3 /app/lynxie/database.py
|
||||
|
||||
# Run the app
|
||||
CMD ["poetry", "run", "python3", "main.py"]
|
||||
CMD ["/root/.local/bin/poetry", "run", "python3", "/app/lynxie/main.py"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue