38 lines
1.3 KiB
Docker
38 lines
1.3 KiB
Docker
FROM ghcr.io/astral-sh/uv:0.5.30@sha256:bb74263127d6451222fe7f71b330edfb189ab1c98d7898df2401fbf4f272d9b9 AS uv
|
|
FROM python:3.11-slim@sha256:42420f737ba91d509fc60d5ed65ed0492678a90c561e1fa08786ae8ba8b52eda AS python
|
|
FROM code.forgejo.org/forgejo/runner:6.2.1@sha256:fecc96a111a15811a6887ce488e75718089f24599e613e93db8e54fe70b706e8 AS forgejo-runner
|
|
|
|
FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm@sha256:6155a486f236fd5127b76af33086029d64f64cf49dd504accb6e5f949098eb7e
|
|
LABEL repository="www.coastalcommits.com/cswimr/SeaCogs"
|
|
LABEL maintainer="cswimr <seaswimmerthefsh@gmail.com>"
|
|
|
|
RUN apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
# Red-DiscordBot
|
|
build-essential \
|
|
git \
|
|
# PyNaCl
|
|
libsodium-dev \
|
|
# CFFI
|
|
libffi-dev \
|
|
# SSH repository support
|
|
openssh-client \
|
|
# Cog dependencies
|
|
# Audio
|
|
openjdk-17-jre-headless \
|
|
# PyLav
|
|
libaio1 \
|
|
libaio-dev \
|
|
# SeaUtils
|
|
dnsutils; \
|
|
apt-get clean; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=uv --chown=vscode: /uv /uvx /bin/
|
|
COPY --from=python --chown=vscode: /usr/local /usr/local
|
|
COPY --from=forgejo-runner --chown=vscode: /bin/forgejo-runner /bin/forgejo-runner
|
|
COPY --chown=vscode: .devcontainer/home/* /home/vscode/
|
|
|
|
RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python; \
|
|
python --version; \
|
|
python -m ensurepip
|