Skip to content

Commit f6501b3

Browse files
committed
Update golang-http to ship static assets
Tested with following in a new function: ``` file, err := ioutil.ReadFile("./users.txt") ``` Signed-off-by: Alex Ellis <[email protected]>
1 parent b8f8d62 commit f6501b3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

template/golang-http-armhf/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ WORKDIR /home/app
2828

2929
COPY --from=build /go/src/handler/handler .
3030
COPY --from=build /usr/bin/fwatchdog .
31+
COPY --from=build /go/src/handler/function/ .
32+
33+
RUN chown -R app /home/app
3134

3235
USER app
3336

template/golang-http/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ WORKDIR /home/app
2828

2929
COPY --from=build /go/src/handler/handler .
3030
COPY --from=build /usr/bin/fwatchdog .
31+
COPY --from=build /go/src/handler/function/ .
32+
33+
RUN chown -R app /home/app
3134

3235
USER app
3336

0 commit comments

Comments
 (0)