Skip to content

Commit

Permalink
fix: warning for Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
a5chin committed Jun 27, 2024
1 parent 57a39a2 commit 689cfe8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim as builder
FROM debian:bookworm-slim AS builder

WORKDIR /opt

Expand Down Expand Up @@ -26,7 +26,7 @@ COPY --from=builder /opt/rye /opt/rye

ENV RYE_HOME="/opt/rye"
ENV PATH="$RYE_HOME/shims:$PATH"
ENV PYTHONUNBUFFERED True
ENV PYTHONUNBUFFERED=True

RUN rye config --set-bool behavior.global-python=true && \
rye config --set-bool behavior.use-uv=true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-python-with-rye/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:

- name: Set up Python ${{ inputs.python-version }}
run: |
export PYTHONUNBUFFERED=1
export PYTHONUNBUFFERED=True
rye pin ${{ inputs.python-version }}
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG VARIANT=3.12
FROM python:${VARIANT} as builder
FROM python:${VARIANT} AS builder

ENV PYTHONDONTWRITEBYTECODE True
ENV PYTHONDONTWRITEBYTECODE=True

WORKDIR /opt
COPY pyproject.toml requirements.lock ./
Expand All @@ -14,6 +14,6 @@ RUN pip install --upgrade pip && \
FROM python:${VARIANT}-slim
COPY --from=builder /usr/local/lib/python*/site-packages /usr/local/lib/python*/site-packages

ENV PYTHONUNBUFFERED True
ENV PYTHONUNBUFFERED=True

WORKDIR /

0 comments on commit 689cfe8

Please sign in to comment.