FROM centos:7

# create the directory where the application will reside
RUN mkdir /auth-server 

# copy the application files needed for production (in this case, only the binary)
ADD AuthServer /auth-server/AuthServer

# set the working directory to the app directory
WORKDIR /auth-server

# expose the application on port 8001. 
# This should be the same as in the port used in the application
EXPOSE 8001

# set the entry point of the container to the application executable
ENTRYPOINT /auth-server/AuthServer
