-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
21 lines (16 loc) · 859 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM nginx:1.14-alpine
#copy static files
COPY ./frontend/dist/domain-pulse /usr/share/nginx/html/domain-pulse
COPY ./frontend/info-page /usr/share/nginx/html/info-page
#copy nginx conf files
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./nginx/domainpulse.app.conf /etc/nginx/sites-available/domainpulse.app.conf
COPY ./nginx/dev-domainpulse.app.conf /etc/nginx/sites-available/dev-domainpulse.app.conf
COPY ./nginx/prod-domainpulse.app.conf /etc/nginx/sites-available/prod-domainpulse.app.conf
RUN mkdir /etc/nginx/sites-enabled
# Create symbolic links to both configuration files (by default, link to dev)
RUN ln -s /etc/nginx/sites-available/dev-domainpulse.app.conf /etc/nginx/sites-enabled/domainpulse.app.conf
# Copy the entry point script
COPY ./nginx/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]