Fix: Dockerfile syntax

This commit is contained in:
Óscar M. Lage 2024-11-28 23:01:05 +01:00
parent ce01bcc3d4
commit 0be66aab74
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,9 @@
FROM golang:1.21.4
ARG DOCKER_ENV=production # Set default build-time value, not persisted in the container
ENV DOCKER_ENV=${DOCKER_ENV} # Set runtime environment variable inside the container
# Set default build-time value, not persisted in the container
ARG DOCKER_ENV=production
# Set runtime environment variable inside the container
ENV DOCKER_ENV=${DOCKER_ENV}
WORKDIR /code

View File

@ -1,7 +1,9 @@
FROM golang:1.21.4
ARG DOCKER_ENV=production # Set default build-time value, not persisted in the container
ENV DOCKER_ENV=${DOCKER_ENV} # Set runtime environment variable inside the container
# Set default build-time value, not persisted in the container
ARG DOCKER_ENV=production
# Set runtime environment variable inside the container
ENV DOCKER_ENV=${DOCKER_ENV}
WORKDIR /code