diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile new file mode 100644 index 0000000..c73700b --- /dev/null +++ b/docker/prod/Dockerfile @@ -0,0 +1,17 @@ +## BACKEND ## +# Parent Image +FROM debian + +# Directories +WORKDIR /srv + +# Installing Deps +RUN apt update -y +RUN apt install -y wget build-essential libssl-dev pkg-config + +# Copying executable +COPY build/stockmapi /bin/stockmapi +RUN chmod +x /bin/stockmapi + +## RUNTIME ## +ENTRYPOINT ["/bin/stockmapi"] diff --git a/scripts/prod/docker.sh b/scripts/prod/docker.sh new file mode 100755 index 0000000..a2a5764 --- /dev/null +++ b/scripts/prod/docker.sh @@ -0,0 +1,7 @@ +# Clear Screen +clear + +# Building image +docker build . \ + -t stockmapi \ + -f docker/prod/Dockerfile