Skip to content

Commit

Permalink
build: use pixi docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
danterolle committed Dec 5, 2024
1 parent 9180b16 commit cbd5d38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.pixi/
__pycache__/
*.pyc
Dockerfile
24 changes: 4 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
# Build
FROM python:3.13-slim AS build
FROM ghcr.io/prefix-dev/pixi:latest

WORKDIR /app

RUN python -m venv venv && \
. venv/bin/activate && \
pip install --no-cache-dir aiohttp

# Prod
FROM python:3.13-slim AS production

WORKDIR /app

COPY --from=build /app/venv /app/venv
COPY . .

EXPOSE 8080

COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

ENTRYPOINT ["/app/entrypoint.sh"]
RUN pixi install && rm -rf ~/.cache/rattler
EXPOSE 8000
CMD [ "pixi", "run", "run" ]
5 changes: 0 additions & 5 deletions entrypoint.sh

This file was deleted.

0 comments on commit cbd5d38

Please sign in to comment.