Skip to content

Instantly share code, notes, and snippets.

@AlbertoDePena
Created December 16, 2019 21:32
Show Gist options
  • Save AlbertoDePena/258114c1414ce38f0f1f0557a01a1d42 to your computer and use it in GitHub Desktop.
Save AlbertoDePena/258114c1414ce38f0f1f0557a01a1d42 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV ERLANG_VERSION="22.1" \
ERLANG_HOME="C:\\erlang" \
RABBITMQ_VERSION="3.8.1" \
RABBITMQ_HOME="C:\\rabbitmq"
COPY otp_win64_22.1.exe .
COPY rabbitmq.zip .
RUN Start-Process -Wait -FilePath C:\otp_win64_22.1.exe -ArgumentList /S, /D=C:\erlang ; \
Remove-Item -Force -Path C:\otp_win64_22.1.exe ; \
Expand-Archive C:\rabbitmq.zip -DestinationPath C:\ ; \
Remove-Item -Force -Path C:\rabbitmq.zip ; \
Rename-Item -Path C:\rabbitmq_server-3.8.1 -NewName C:\rabbitmq
EXPOSE 4369 5671 5672 15671 15672 25672
COPY rabbitmq.config C:/Users/ContainerAdministrator/AppData/Roaming/RabbitMQ/
RUN C:\rabbitmq\sbin\rabbitmq-plugins.bat enable --offline rabbitmq_management
CMD C:\rabbitmq\sbin\rabbitmq-server.bat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment