AstroJS/windows/app/Dockerfile

15 lines
723 B
Docker
Raw Normal View History

2022-04-04 17:42:09 +00:00
FROM astrojs/jre-nanoserver-20h2:latest
2021-09-05 15:16:37 +00:00
RUN pip3 install Flask redis compressinja celery
2022-04-05 09:13:40 +00:00
RUN New-Item -ItemType Directory -Path /opt/utils; \
New-Item -ItemType Directory -Path /app/cache -Force; \
2021-09-05 15:16:37 +00:00
[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' ;
2022-04-05 09:13:40 +00:00
COPY . /app
2021-09-05 15:16:37 +00:00
WORKDIR /app
2022-04-05 09:13:40 +00:00
EXPOSE 5000