added Dockerfile
This commit is contained in:
parent
5b06603977
commit
b4888d8069
35
Dockerfile
Normal file
35
Dockerfile
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# ------ building mmovienight from source ------
|
||||
#
|
||||
|
||||
FROM golang:1.13-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add alpine-sdk
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN make
|
||||
|
||||
|
||||
|
||||
#
|
||||
# ------ creating image to run movienight ------
|
||||
#
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
VOLUME /config
|
||||
|
||||
COPY --from=build /app /app
|
||||
COPY --from=build /app/settings_example.json /config/settings.json
|
||||
|
||||
RUN chmod +x /app/docker/start.sh
|
||||
|
||||
EXPOSE 8089
|
||||
EXPOSE 1935
|
||||
|
||||
CMD ["/app/docker/start.sh"]
|
7
docker/start.sh
Normal file
7
docker/start.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# copy current settings from config-volume to app folder
|
||||
cp /config/settings.json /app/settings.json
|
||||
|
||||
# start movienight
|
||||
/app/MovieNight
|
Loading…
Reference in New Issue
Block a user