forked from zorchenhimer/MovieNight
-
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.
Merge pull request zorchenhimer#189 from zorchenhimer/docker
Docker
- Loading branch information
Showing
7 changed files
with
43 additions
and
70 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,35 +1,23 @@ | ||
# | ||
# ------ building mmovienight from source ------ | ||
# | ||
|
||
FROM golang:1.16-alpine AS build | ||
FROM golang:1.18 AS build | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add alpine-sdk | ||
|
||
COPY . . | ||
|
||
RUN make docker | ||
|
||
|
||
|
||
# | ||
# ------ creating image to run movienight ------ | ||
# | ||
RUN go build | ||
|
||
FROM alpine:latest | ||
FROM photon | ||
|
||
WORKDIR /app | ||
|
||
VOLUME /config | ||
VOLUME /data | ||
|
||
COPY --from=build /app /app | ||
COPY --from=build /app/settings_example.json /config/settings.json | ||
RUN mkdir -p /data/emotes & mkdir -p /data/static | ||
|
||
RUN chmod +x /app/docker/start.sh | ||
COPY --from=build /app/MovieNight /app | ||
COPY --from=build /app/settings_example.json /data/config/settings.json | ||
|
||
EXPOSE 8089 | ||
EXPOSE 1935 | ||
|
||
CMD ["/app/docker/start.sh"] | ||
CMD ["/app/MovieNight", "--config", "/data/config/settings.json", "--static", "/data/static", "--emotes", "/data/emotes"] |
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 was deleted.
Oops, something went wrong.
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
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