FROM nginx:1.15.8-alpine
#https://openui5.hana.ondemand.com/downloads/openui5-sdk-1.61.2.zip
ARG ui5_version="1.61.2"
ARG ui5_filename="openui5-sdk-${ui5_version}.zip"
ARG ui5_url="https://openui5.hana.ondemand.com/downloads/${ui5_filename}"
RUN apk add --no-cache --virtual .sdk wget unzip
RUN mkdir -p /var/www
RUN wget ${ui5_url} --no-check-certificate -P /var/www
RUN unzip -o /var/www/${ui5_filename} -d /var/www
RUN apk del .sdk
RUN rm /var/www/${ui5_filename}
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
server {
listen 80;
root /var/www/;
# avoid caching
# see https://stackoverflow.com/questions/40243633/disable-nginx-cache-for-javascript-files
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
}
version: '2.1'
services:
openui5_sdk:
build:
context: ./
args:
ui5_version: "1.61.2"
restart: always
ports:
- 5000:80
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
38 | |
19 | |
13 | |
13 | |
11 | |
10 | |
10 | |
10 | |
8 | |
8 |