Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
- Change the legacy "ENV key value" format to "ENV key=value".
  Ref: https://docs.docker.com/reference/build-checks/legacy-key-value-format/
  • Loading branch information
hwdsl2 committed Jun 24, 2024
1 parent 8b0ae5f commit 8d82ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

FROM alpine:3.19

ENV SWAN_VER 5.0
ENV SWAN_VER=5.0
WORKDIR /opt/src

RUN set -x \
Expand Down Expand Up @@ -50,7 +50,7 @@ CMD ["/opt/src/run.sh"]
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ENV IMAGE_VER $BUILD_DATE
ENV IMAGE_VER=$BUILD_DATE

LABEL maintainer="Lin Song <linsongui@gmail.com>" \
org.opencontainers.image.created="$BUILD_DATE" \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

FROM debian:bookworm-slim

ENV SWAN_VER 5.0
ENV SWAN_VER=5.0
WORKDIR /opt/src

RUN apt-get -yqq update \
Expand Down Expand Up @@ -54,7 +54,7 @@ CMD ["/opt/src/run.sh"]
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ENV IMAGE_VER $BUILD_DATE
ENV IMAGE_VER=$BUILD_DATE

LABEL maintainer="Lin Song <linsongui@gmail.com>" \
org.opencontainers.image.created="$BUILD_DATE" \
Expand Down

0 comments on commit 8d82ae8

Please sign in to comment.