Skip to content

Commit

Permalink
add_dockerfile (#111)
Browse files Browse the repository at this point in the history
* Initial commit

* update 1 file and create 1 file
  • Loading branch information
MartinBernstorff authored May 26, 2024
1 parent 4440bd0 commit 763653e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: {% raw %}${{steps.meta.outputs.tags }}{% endraw %}
tags: {% raw %}${{ steps.meta.outputs.tags }}{% endraw %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.11

# Set the working directory to /app
WORKDIR /app

ENV RYE_HOME="/opt/rye"
ENV PATH="$RYE_HOME/shims:$PATH"
ENV RYE_INSTALL_OPTION="--yes"
ENV RYE_TOOLCHAIN="/usr/local/bin/python"
ENV RYE_VERSION=0.33.0

RUN curl -sSf https://rye.astral.sh/get > /tmp/get-rye.sh
RUN bash /tmp/get-rye.sh
RUN rm /tmp/get-rye.sh
RUN echo 'source "$HOME/.rye/env"' >> ~/.bashrc

RUN rye config --set-bool behavior.use-uv=true
RUN rye config --set-bool behavior.global-python=true

COPY pyproject.toml requirements.lock requirements-dev.lock ./
RUN rye sync --no-lock

COPY . /app/
RUN rye sync --no-lock

0 comments on commit 763653e

Please sign in to comment.