mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-28 14:23:15 +00:00
26 lines
597 B
Docker
26 lines
597 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM alpine:3.18.2
|
|
|
|
# Make a directory for the app
|
|
RUN mkdir /app
|
|
RUN mkdir /app/lynxie
|
|
WORKDIR /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 -
|
|
|
|
# Install the app
|
|
RUN /root/.local/bin/poetry install
|
|
RUN /root/.local/bin/poetry run python3 /app/lynxie/database.py
|
|
|
|
# Run the app
|
|
CMD ["/root/.local/bin/poetry", "run", "python3", "/app/lynxie/main.py"]
|