-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * update 1 file and create 1 file
- Loading branch information
1 parent
4440bd0
commit 763653e
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
template/{%- if release_docker_image -%}Dockerfile{%- endif %}.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |