Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Merge patch-atomic-nightly-entry-01-06-2025-1736160224 into dev #3674

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/kbve.com/src/content/journal/01-06.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ tags:

Finally got OBS to work among multiple machines, had to downgrade to v30.2 because v31 certs were not approved for League.

- 05:44AM

**Dockerfile**

OKay let me get the dockerfile rolling for the `pydiscordsh`.
Well before we do the docker, we need to add `https://pypi.org/project/fastapi/`, so lets do that next.
The command would be:

```shell
pnpm nx run pydiscordsh:add --name fastapi
```

## 2024

- 3:54pm - Working on the JS Embed Passport with Soksoa!
Expand Down
37 changes: 37 additions & 0 deletions apps/pydiscordsh/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Base image with Python and Poetry pre-installed
FROM python:3.11-slim

# Set environment variables for Poetry and Python
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.8.2 \
POETRY_HOME="/opt/poetry" \
POETRY_VIRTUALENVS_IN_PROJECT=true \
POETRY_NO_INTERACTION=1

# Install system dependencies and Poetry
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
&& curl -sSL https://install.python-poetry.org | python3 - \
&& ln -s /opt/poetry/bin/poetry /usr/local/bin/poetry \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy only the relevant files for dependency installation first
COPY pyproject.toml poetry.lock ./

# Install dependencies with Poetry (including project dependencies)
RUN poetry install --no-root --only main

# Copy the rest of the app code
COPY . .

# Install the project itself (if it's structured as a package)
RUN poetry install --no-dev

# Set the default command to run the application
CMD ["poetry", "run", "python", "-m", "pydiscordsh"]
Empty file added apps/pydiscordsh/main.py
Empty file.
Loading
Loading