Skip to content

Instantly share code, notes, and snippets.

@AlbertoDePena
Last active December 16, 2019 21:31
Show Gist options
  • Save AlbertoDePena/1dcf67bb17832a70cf692b28fe7b23cb to your computer and use it in GitHub Desktop.
Save AlbertoDePena/1dcf67bb17832a70cf692b28fe7b23cb to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV NGINX_VERSION 1.17.6
RUN Invoke-webrequest http://nginx.org/download/nginx-1.17.6.zip -UseBasicParsing -outfile C:\nginx.zip ; \
Expand-Archive C:\nginx.zip -DestinationPath C:\nginx
WORKDIR C:\\nginx\\nginx-1.17.6
ENTRYPOINT .\\nginx.exe
# COPY nginx.conf ./conf/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment