fix robots.txt
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
FROM nginx:latest
|
||||
RUN rm -rf /etc/nginx/html/*
|
||||
|
||||
# Install dependencies needed to add NodeSource repo
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@@ -15,6 +16,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
||||
|
||||
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
COPY nginx_setup.conf.template /etc/nginx/nginx_setup.conf.template
|
||||
COPY robots.txt /etc/nginx/html/robots.txt
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
WORKDIR /app
|
||||
@@ -23,9 +25,7 @@ RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
RUN mkdir -p /etc/nginx/html \
|
||||
&& rm -rf /etc/nginx/html/* \
|
||||
&& cp -r ./dist/* /etc/nginx/html/
|
||||
|
||||
COPY robots.txt /etc/nginx/html/robots.txt
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user