Skip to content

Commit b29a472

Browse files
committed
Fix paths in Dockerfile
1 parent 9e20377 commit b29a472

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.docker/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN groupadd --gid $USER_GID $USERNAME \
4545
&& chmod 0440 /etc/sudoers.d/$USERNAME
4646

4747
USER $USERNAME
48-
WORKDIR /home/apl
48+
WORKDIR /home/$USERNAME
4949

5050
CMD ["/bin/bash"]
5151

@@ -54,17 +54,17 @@ CMD ["/bin/bash"]
5454
#====================================================================
5555
FROM ci as git_checkout
5656

57-
ARG WS_DIR=/home/$USERNAME/ros_ws
58-
ONBUILD WORKDIR ${WS_DIR}/src
57+
ARG WS_DIR=/home/$USERNAME
58+
WORKDIR ${WS_DIR}
5959

6060
ARG LIBOCULUS_REPO=https://github.com/apl-ocean-engineering/liboculus.git
6161
ARG LIBOCULUS_BRANCH=main
62-
ONBUILD RUN echo "Cloning from ${LIBOCULUS_BRANCH} branch ${LIBOCULUS_ROS_REPO}"
62+
RUN echo "Cloning from ${LIBOCULUS_BRANCH} branch ${LIBOCULUS_ROS_REPO}"
6363

64-
ONBUILD RUN git clone --depth 1 -b ${LIBOCULUS_BRANCH} ${LIBOCULUS_REPO}
64+
RUN git clone --depth 1 -b ${LIBOCULUS_BRANCH} ${LIBOCULUS_REPO}
6565

6666
#====================================================================
67-
# Final image with built ROS packages
67+
# Final image with built fips package
6868
#====================================================================
6969
# dockerfile_lint - ignore
7070
FROM git_checkout as liboculus

0 commit comments

Comments
 (0)