faster compile time
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
||||||
# Copy template config
|
|
||||||
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
|
||||||
COPY nginx_setup.conf.template /etc/nginx/nginx_setup.conf.template
|
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
|
||||||
|
|
||||||
# Install dependencies needed to add NodeSource repo
|
# Install dependencies needed to add NodeSource repo
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
@@ -19,6 +13,10 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
|||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& npm install -g npm@latest
|
&& npm install -g npm@latest
|
||||||
|
|
||||||
|
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
||||||
|
COPY nginx_setup.conf.template /etc/nginx/nginx_setup.conf.template
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY vue/ ./
|
COPY vue/ ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|||||||
Reference in New Issue
Block a user