initial commit 2
This commit is contained in:
22
Dockerfile.run
Normal file
22
Dockerfile.run
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM amazonlinux
|
||||
|
||||
# Sets the arguments.
|
||||
ARG BIN_NAME=nemt-portal-api
|
||||
ARG APP_NAME=nemt-portal-api
|
||||
ARG WORKDIR=/opt/app/
|
||||
|
||||
# Creates the necessary directories.
|
||||
RUN mkdir -p /opt/app/docs
|
||||
RUN mkdir -p /opt/app/static
|
||||
RUN mkdir -p /var/log/bsbsi
|
||||
|
||||
# Copies the files to the container.
|
||||
COPY ./dist/${BIN_NAME} /opt/app/${BIN_NAME}
|
||||
ADD ./dist/docs/ /opt/app/docs/
|
||||
ADD ./dist/static/ /opt/app/static/
|
||||
ADD ./dist/config.toml /opt/app/config.toml
|
||||
|
||||
# Sets and executes the app.
|
||||
WORKDIR /opt/app
|
||||
EXPOSE 5000
|
||||
CMD ./nemt-portal-api
|
||||
Reference in New Issue
Block a user