-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (19 loc) · 919 Bytes
/
Dockerfile
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
FROM nginx:1.14 AS nginx-prod
LABEL maintainer="web@johnserrano.co"
COPY /nginx/default.conf /etc/nginx/conf.d/default.conf
COPY /nginx/backend-prod.conf /etc/nginx/conf.d/backend-prod.conf
COPY /nginx/api-prod.conf /etc/nginx/conf.d/api-prod.conf
COPY /nginx/static-prod.conf /etc/nginx/conf.d/static-prod.conf
COPY /nginx/api-stage.conf /etc/nginx/conf.d/api-stage.conf
COPY /nginx/backend-stage.conf /etc/nginx/conf.d/backend-stage.conf
COPY /nginx/static-stage.conf /etc/nginx/conf.d/static-stage.conf
# VOLUME /var/log/nginx
EXPOSE 80
FROM nginx:1.14 AS nginx-dev
LABEL maintainer="web@johnserrano.co"
COPY /nginx/default-dev.conf /etc/nginx/conf.d/default-dev.conf
COPY /nginx/backend-dev.conf /etc/nginx/conf.d/backend-dev.conf
COPY /nginx/api-dev.conf /etc/nginx/conf.d/api-dev.conf
COPY /nginx/static-dev.conf /etc/nginx/conf.d/static-dev.conf
# VOLUME /var/log/nginx
EXPOSE 80