-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM docker.io/library/nginx:stable
ARG REPO_URL
ARG GIR_BRANCH
ARG GIT_COMMIT
ARG RELEASE_VERSION
LABEL purpose="ROADMOCKER" \
roadmocker.build_branch=${GIT_BRANCH} \
roadmocker.build_commit=${GIT_COMMIT} \
roadmocker.repo_url=${REPO_URL} \
roadmocker.release_version=${RELEASE_VERSION}
WORKDIR /usr/share/nginx/html
COPY . /usr/share/nginx/html
COPY deploy/default.conf /etc/nginx/conf.d/default.conf
RUN mkdir test-data
RUN mkdir radar-test-data
RUN mkdir congestion
RUN tar zxvf test_data.tar.gz -C test-data && chmod 644 test-data/*.json && rm -rf test-data/.*json* && rm -rf test-data/.*DS_Store*
RUN tar zxvf radar_test_data.tar.gz -C radar-test-data && chmod 644 radar-test-data/*.json
RUN ls test-data/* | awk '{print $1 " <br/>"}' > test-data/index.html