Skip to content

Commit

Permalink
Dockerfile: remove a couple of mkdir
Browse files Browse the repository at this point in the history
The WORKDIR directive will create the directory,
so this saves a layer in the image.
  • Loading branch information
pjonsson committed Nov 19, 2023
1 parent 6eeb64c commit 5978bb3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5978bb3

Please sign in to comment.