Skip to content

Commit

Permalink
Use an equals sign to separate key and value
Browse files Browse the repository at this point in the history
instead of legacy `ENV key value` format.
  • Loading branch information
flenny committed Aug 9, 2024
1 parent e9a4515 commit f03fccd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api-legacy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ COPY . ./bms

ARG VERSION
ARG REVISION
ENV APP_VERSION ${VERSION}
ENV APP_REVISION ${REVISION}
ENV APP_VERSION=${VERSION}
ENV APP_REVISION=${REVISION}

CMD ["/bin/sh", "-c", "python -u bms/main.py \
--pg-host=${DB_HOST} \
Expand Down
2 changes: 1 addition & 1 deletion src/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /src
RUN apt-get -y update
RUN apt-get -y install git vim curl htop
RUN dotnet tool install --global dotnet-ef --version 8.0.0
ENV PATH $PATH:/root/.dotnet/tools
ENV PATH=$PATH:/root/.dotnet/tools

# Restore dependencies and tools
COPY BDMS.csproj .
Expand Down
4 changes: 2 additions & 2 deletions src/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:20-buster-slim AS development
ARG VERSION
ARG REVISION
ENV VITE_APP_VERSION ${VERSION}+${REVISION}
ENV VITE_APP_VERSION=${VERSION}+${REVISION}
RUN apt-get -y update
RUN apt-get -y install git vim curl htop python3 python3-pip
RUN python3 -m pip install mkdocs
Expand All @@ -22,7 +22,7 @@ ENTRYPOINT ["npm", "run", "start", "--", "--host"]
FROM node:20-buster-slim AS deploy
ARG VERSION
ARG REVISION
ENV VITE_APP_VERSION ${VERSION}+${REVISION}
ENV VITE_APP_VERSION=${VERSION}+${REVISION}
RUN apt-get -y update
RUN apt-get -y install git

Expand Down

0 comments on commit f03fccd

Please sign in to comment.