-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
42 lines (33 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM nginx:stable-alpine
# This image needs one environment variables upon execution:
# * APP_CONFIG
# The complete contents of "assets/configuration.js" with
# appropriate endpoint URLs. Example:
#
# var appConfig = function() {
# return {
# serviceUrls: {
# xtextService: "http://localhost:8080/xtext-service",
# persistenceService: "http://localhost:9080",
# testExecutionService: "http://localhost:9080/tests",
# testSuiteExecutionService: "http://localhost:9080/test-suite",
# validationMarkerService: "http://localhost:8080/validation-markers",
# indexService: "http://localhost:8080/index",
# testCaseService: "http://localhost:8080/test-case"
# }
# }
# };
LABEL license="EPL 1.0" \
name="testeditor/web"
ENV WORK_DIR=/usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
COPY dist ${WORK_DIR}/
COPY run.sh ${WORK_DIR}/
RUN chmod -R 777 /var/log/nginx /var/cache /var/run && \
chmod -R 777 /etc/nginx/* && \
chmod -R 777 /usr/share/nginx/*
EXPOSE 4200
USER nginx
WORKDIR ${WORK_DIR}
ENTRYPOINT [ "/bin/sh", "run.sh" ]