Skip to content

Instantly share code, notes, and snippets.

@roylarsen
Created May 12, 2019 19:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save roylarsen/14f0f87775e4d039e47d2c42002d0d87 to your computer and use it in GitHub Desktop.
Server 2016 Dockerfile
FROM mcr.microsoft.com/windows/nanoserver:latest
RUN mkdir C:\\webapps
RUN mkdir C:\\tomcat
RUN mkdir C:\\jre1.8.0_111
COPY ./tomcat C:\\tomcat
COPY ./jre1.8.0_111 C:\\jre1.8.0_111
COPY ./certs C:\\certs
COPY *.war C:\\webapps/
ENV JRE_HOME C:\\jre1.8.0_111
ENV CATALINA_HOME C:\\tomcat
EXPOSE 8080
EXPOSE 8443
CMD ["C:\\tomcat\\bin\\catalina.bat", "run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment