Skip to content

Commit

Permalink
formatting changes to address FromAsCasing warning (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhle authored Nov 7, 2024
1 parent 2d61da9 commit 35fc7b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG PUSH_SENTRY_RELEASE="false"

# Build step #1: build the React front end
FROM node:23-alpine as build-step
FROM node:23-alpine AS build-step
ARG SENTRY_RELEASE=""
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
Expand All @@ -17,7 +17,7 @@ ENV REACT_APP_API_SERVER_URL ""
RUN npm run build

# Optional build step #2: upload the source maps by pushing a release to sentry
FROM getsentry/sentry-cli:2 as sentry
FROM getsentry/sentry-cli:2 AS sentry
ARG SENTRY_RELEASE=""
RUN --mount=type=secret,id=SENTRY_CLI_RC \
cp /run/secrets/SENTRY_CLI_RC ~/.sentryclirc
Expand All @@ -29,7 +29,7 @@ RUN sentry-cli releases finalize ${SENTRY_RELEASE}
RUN touch sentry

# Build step #3: build the API with the client as static files
FROM python:3.13 as false
FROM python:3.13 AS false
ARG SENTRY_RELEASE=""
WORKDIR /app
COPY --from=build-step /app/build ./build
Expand All @@ -41,7 +41,7 @@ COPY migrations/ ./migrations/
RUN pip install -r ./api/requirements.txt

# Build an image that includes the optional sentry release push build step
FROM false as true
FROM false AS true
COPY --from=sentry /app/sentry ./sentry

# Final build step: copy the API and the client from the previous steps
Expand Down

0 comments on commit 35fc7b4

Please sign in to comment.