Skip to content

Commit

Permalink
Dockerfile: Use WORKDIR consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky committed Sep 19, 2023
1 parent 5ed08df commit ebb1c8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ RUN tdnf install -y xfsprogs e2fsprogs udev && \
WORKDIR /opt/vcloud/bin

ARG CSI_BUILD_DIR
ADD ${CSI_BUILD_DIR}/cloud-director-named-disk-csi-driver .
COPY ${CSI_BUILD_DIR}/cloud-director-named-disk-csi-driver .
# copy multiple small files at 1 time to create a single layer
COPY LICENSE.txt NOTICE.txt open_source_license.txt /opt/vcloud/bin/

RUN chmod +x /opt/vcloud/bin/cloud-director-named-disk-csi-driver
COPY LICENSE.txt NOTICE.txt open_source_license.txt .

# USER nobody
ENTRYPOINT ["/bin/bash", "-l", "-c"]

0 comments on commit ebb1c8c

Please sign in to comment.