mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
17 lines
314 B
Plaintext
17 lines
314 B
Plaintext
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 /usr/local/bin/videos
|
|
COPY ./videos/videos.json /
|
|
COPY run.sh /
|
|
RUN chmod +x /run.sh
|
|
ENTRYPOINT [ "./run.sh" ] |