Added docker windows container for dev

This commit is contained in:
2021-09-05 23:16:37 +08:00
parent 7419c1c869
commit 01dca50e2e
16 changed files with 217 additions and 44 deletions

12
windows/app/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM astrojs/jre-nanoserver-1809:latest
RUN pip3 install Flask redis compressinja celery
RUN New-Item -ItemType "Directory" -Path /opt/utils; \
New-Item -ItemType "Directory" -Path /app; \
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -UseBasicParsing -Uri 'https://github.com/tgckpg/BotanJS/releases/download/compressors/closure.jar' -OutFile '/opt/utils/closure.jar' ; \
Invoke-WebRequest -UseBasicParsing -Uri 'https://github.com/tgckpg/BotanJS/releases/download/compressors/yuicompressor.jar' -OutFile '/opt/utils/yuicompressor.jar' ;
EXPOSE 5000
WORKDIR /app