Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit ef9a5bf

Browse files
committed
ref(Dockerfile): copy the router binary after building ngnix binary
1 parent 74edb54 commit ef9a5bf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rootfs/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN adduser --system \
77
--group \
88
router
99

10-
COPY . /
10+
COPY /bin /bin
1111

1212
RUN apt-get update \
1313
&& apt-get install -y \
@@ -59,8 +59,7 @@ RUN apt-get update \
5959
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc \
6060
&& rm -rf "$BUILD_PATH"
6161

62-
# Re-copy these files because the previous step will have overwritten them
63-
COPY opt/router /opt/router
62+
COPY . /
6463

6564
# Fix some permissions since we'll be running as a non-root user
6665
RUN chown -R router:router /opt/router

0 commit comments

Comments
 (0)