generated from OBJNULL/Dockerized-Rust
Imported production images
This commit is contained in:
parent
b245edadf3
commit
d72e65fd04
2 changed files with 24 additions and 0 deletions
17
docker/prod/Dockerfile
Normal file
17
docker/prod/Dockerfile
Normal file
|
|
@ -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"]
|
||||||
7
scripts/prod/docker.sh
Executable file
7
scripts/prod/docker.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Clear Screen
|
||||||
|
clear
|
||||||
|
|
||||||
|
# Building image
|
||||||
|
docker build . \
|
||||||
|
-t stockmapi \
|
||||||
|
-f docker/prod/Dockerfile
|
||||||
Loading…
Reference in a new issue