nginx conf
This commit is contained in:
parent
17258c7631
commit
0e0728a36a
|
|
@ -10,12 +10,9 @@ ARG CURLOPT_SSL_VERIFYPEER=FALSE
|
||||||
LABEL version=$VERSION build=$BUILD mode=$TARGETENV
|
LABEL version=$VERSION build=$BUILD mode=$TARGETENV
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN apt-get update && apt-get install -y curl ca-certificates
|
RUN apt-get update && apt-get install -y curl ca-certificates
|
||||||
# RUN curl -fsSLk https://deb.nodesource.com/setup_16.x | bash -
|
|
||||||
RUN apt-get install -y nginx
|
RUN apt-get install -y nginx
|
||||||
RUN rm -rf /usr/share/nginx/html/
|
RUN rm -rf /usr/share/nginx/html/
|
||||||
RUN mkdir -p /usr/share/nginx/html
|
RUN mkdir -p /usr/share/nginx/html
|
||||||
# RUN npm install forever -g
|
|
||||||
RUN mkdir /data
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
@ -34,7 +31,6 @@ RUN npm run build
|
||||||
# служебные штуки
|
# служебные штуки
|
||||||
RUN cp -R /data/dist/* /usr/share/nginx/html
|
RUN cp -R /data/dist/* /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
RUN mkdir /usr/share/nginx/html/.well-known
|
|
||||||
RUN chmod +x /data/run.sh
|
RUN chmod +x /data/run.sh
|
||||||
|
|
||||||
CMD ["/data/run.sh"]
|
CMD ["/data/run.sh"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue