From 515051efa93e032d261119b8589749a54be7ccc9 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Sun, 19 Nov 2023 13:15:04 +0100 Subject: [PATCH] Dockerfile: remove a couple of mkdir The WORKDIR directive will create the directory, so this saves a layer in the image. --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14d3dcf0..99f8d403 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,6 @@ RUN apt-get update -y \ ENV GDAL_DISABLE_READDIR_ON_OPEN="EMPTY_DIR" -# make folders -RUN mkdir -p /code # Copy source code and install it WORKDIR /code COPY . /code @@ -62,8 +60,6 @@ COPY --from=builder /usr/local/bin/flask /usr/local/bin/flask COPY --from=builder /usr/local/bin/gunicorn /usr/local/bin/gunicorn # pybabel cli COPY --from=builder /usr/local/bin/pybabel /usr/local/bin/pybabel -# make folders for testing and keep code in image -RUN mkdir -p /code # Copy source code and install it WORKDIR /code COPY . /code