-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
33 lines (25 loc) · 847 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
31
32
33
# Dockerfile
#
# Project: Baythium Packer
# File: /dockerfile
# Organization: Baythium - https://baythium.com
FROM nginx:1.16.1 AS builder
LABEL maintainer = "Baythium"
###################
# RUNTIME VARIABLES
###################
# NOTE: The variables set with ENV are for runtime only
ENV NGINX_VERSION 1.16.1
ENV ELEVENTY_ENV production
# COPY scripts/entrypoint.sh /usr/bin
COPY dist/ /usr/share/nginx/html/
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/custom-errors.conf /etc/nginx/custom-errors.conf
COPY nginx/nginx.default.conf /etc/nginx/conf.d/default.conf
# RUN chown nginx:nginx /usr/share/nginx/html/*
# RUN chmod +x /usr/bin/entrypoint.sh
RUN chown -R nginx:nginx /usr/share/nginx/html && \
chmod -R 755 /usr/share/nginx/html
# EXPOSE 10033
# ENTRYPOINT /usr/bin/entrypoint.sh
CMD ["nginx", "-g", "daemon off;"]