andreped commited on
Commit
f4224ab
·
1 Parent(s): 15ecff4

Download test sample and OpenSeadragon in Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile CHANGED
@@ -3,6 +3,9 @@ FROM nginx:alpine
3
  # Install shadow package to get useradd command
4
  RUN apk add --no-cache shadow
5
 
 
 
 
6
  # Add a new user
7
  RUN useradd -m -u 1000 user
8
 
@@ -13,6 +16,18 @@ WORKDIR /app
13
  COPY index.html /usr/share/nginx/html
14
  COPY nginx.conf /etc/nginx/nginx.conf
15
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  # Expose port 7860
17
  EXPOSE 7860
18
 
 
3
  # Install shadow package to get useradd command
4
  RUN apk add --no-cache shadow
5
 
6
+ # Install wget
7
+ RUN apk add --no-cache wget
8
+
9
  # Add a new user
10
  RUN useradd -m -u 1000 user
11
 
 
16
  COPY index.html /usr/share/nginx/html
17
  COPY nginx.conf /etc/nginx/nginx.conf
18
 
19
+ # Download test data
20
+ RUN wget https://github.com/andreped/wsi-visualization-demo/releases/download/sample-data/test-sample.zip \
21
+ && unzip test-sample.zip -d /usr/share/nginx/html \
22
+ && rm test-sample.zip
23
+
24
+ # Download OpenSeadragon
25
+ RUN wget https://github.com/openseadragon/openseadragon/releases/download/v5.0.0/openseadragon-bin-5.0.0.zip \
26
+ && unzip openseadragon-bin-5.0.0.zip -d /usr/share/nginx/html \
27
+ && rm openseadragon-bin-5.0.0.zip
28
+
29
+ RUN ls -la /usr/share/nginx/html
30
+
31
  # Expose port 7860
32
  EXPOSE 7860
33