Something went wrong. Try again.
social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536FROM python:3.12-alpineCOPY --from=ghcr.io/astral-sh/uv:0.7.12 /uv /uvx /bin/# Install build tools & runtime dependenciesRUN apk add --no-cache \ ffmpeg \ file \ libmagicRUN mkdir -p /app/dataWORKDIR /app# switch to a non-root userRUN adduser -D -u 1000 app && \ chown -R app:app /appUSER app# Enable bytecode compilationENV UV_COMPILE_BYTECODE=1# Copy from the cache instead of linking since it's a mounted volumeENV UV_LINK_MODE=copy# Define app data volumeVOLUME /app/data# Then, add the rest of the project source code and install itCOPY --chown=app:app . /appRUN uv sync --locked --no-group dev# Place executables in the environment at the front of the pathENV PATH="/app/.venv/bin:$PATH"# Set entrypoint to run the app using uvENTRYPOINT ["python", "main.py"]