Files
raid-callouts/core_Dockerfile
Gabriella Agathon 06fc6adc61
Some checks failed
test and deploy / test (push) Successful in 24s
test and deploy / push-and-build (push) Failing after 45s
ANOTHER ONE
2026-02-19 22:14:20 -07:00

41 lines
1.1 KiB
Plaintext

# syntax=docker/dockerfile:1
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/go/dockerfile-reference/
# Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7
ARG PYTHON_VERSION=3.11.5
FROM ubuntu:latest AS base
# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1
# Keeps Python from buffering stdout and stderr to avoid situations where
# the application crashes without emitting any logs due to buffering.
ENV PYTHONUNBUFFERED=1
# Set timezone in the container
ENV TZ="America/Detroit"
WORKDIR /app
# update package list
RUN apt-get update
# install python, pipx
RUN apt-get install -y wget python3 pipx
# Copy the source code into the container.
COPY . .
# install poetry via pipx
RUN pipx install poetry && pipx ensurepath
RUN ~/.local/bin/poetry install
# Expose the port that the application listens on.
EXPOSE 8000
CMD ["~/.local/bin/poetry", "run", "python3", "src/py/bot_core.py", "xiv-database.ini", "xiv-discord.token", "865781604881530940", "888844785274724362"]