forked from marcel-dempers/docker-development-youtube-series
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f48c3bd
commit 77c038d
Showing
4 changed files
with
45 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM golang:1.15-alpine as dev | ||
|
||
WORKDIR /work | ||
|
||
FROM golang:1.15-alpine as build | ||
|
||
WORKDIR /videos | ||
COPY ./videos/* /videos/ | ||
RUN go build -o videos | ||
|
||
FROM alpine as runtime | ||
COPY --from=build /videos/videos / | ||
FROM golang:1.15-alpine as dev | ||
WORKDIR /work | ||
FROM golang:1.15-alpine as build | ||
WORKDIR /videos | ||
COPY ./videos/* /videos/ | ||
RUN go build -o videos | ||
FROM alpine as runtime | ||
COPY --from=build /videos/videos / | ||
CMD ./videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters