mirror of
https://github.com/darmiel/yaxc.git
synced 2024-12-27 01:33:18 +08:00
Include assets in docker image
This commit is contained in:
parent
fcf2f2372a
commit
9af7817c16
1 changed files with 7 additions and 2 deletions
|
@ -20,5 +20,10 @@ RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o yaxc .
|
|||
# Output Image
|
||||
FROM alpine
|
||||
COPY --from=builder /usr/src/app/yaxc .
|
||||
RUN ls -larth /
|
||||
ENTRYPOINT ["/yaxc"]
|
||||
|
||||
# Copy assets
|
||||
RUN mkdir /assets
|
||||
COPY --from=builder /usr/src/app/assets/ /assets
|
||||
RUN ls -larth /assets
|
||||
|
||||
ENTRYPOINT ["/yaxc"]
|
Loading…
Reference in a new issue