Fix prod vs prod local builds

This commit is contained in:
IRBorisov 2023-09-16 17:03:08 +03:00
parent 05bee25891
commit 6a7179e745
3 changed files with 8 additions and 2 deletions

View File

@ -58,6 +58,7 @@ services:
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.local
args:
BUILD_TYPE: production.local
ports:

View File

@ -2,5 +2,4 @@ FROM nginx:stable-alpine3.17-slim
ARG BUILD_TYPE=production
# Сopу nginx configuration to the proxy-server
COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf
COPY ./cert/*.pem /etc/ssl/private/
COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf

6
nginx/Dockerfile.local Normal file
View File

@ -0,0 +1,6 @@
FROM nginx:stable-alpine3.17-slim
ARG BUILD_TYPE=production
# Сopу nginx configuration to the proxy-server
COPY ./$BUILD_TYPE.conf /etc/nginx/conf.d/default.conf
COPY ./cert/*.pem /etc/ssl/private/