Start of dockerfile for running server in docker
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk add gcompat
|
||||||
|
RUN apk add libuuid
|
||||||
|
|
||||||
|
# copy users file and app binary
|
||||||
|
COPY ./output/userctl /root/userctl
|
||||||
|
COPY ./output/server /root/server
|
||||||
|
|
||||||
|
RUN mkdir /books
|
||||||
|
|
||||||
|
# init command
|
||||||
|
#ENTRYPOINT [ "/root/server", "5000", "/books", "ThoNohT's Library" ]
|
||||||
|
ENTRYPOINT [ "/bin/sh" ]
|
||||||
9
build.sh
9
build.sh
@@ -25,6 +25,15 @@ elif [ $1 = "clean" ]; then
|
|||||||
|
|
||||||
rm -rf ./output/
|
rm -rf ./output/
|
||||||
|
|
||||||
|
elif [ $1 = "dockerbuild" ]; then
|
||||||
|
echo "Building docker image"
|
||||||
|
|
||||||
|
docker image build \
|
||||||
|
--file Dockerfile \
|
||||||
|
--progress plain \
|
||||||
|
--tag folder-opds-server \
|
||||||
|
.
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Invalid command."
|
echo "Invalid command."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user