Cleaned up gitlab-ci and Dockerfile
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# This file is a template, and might need editing before it works on your project.
|
# This file is a template, and might need editing before it works on your project.
|
||||||
# Official docker image.
|
# Official docker image.
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,8 @@ COPY ["package.json", "./"]
|
|||||||
COPY ["package-lock.json", "./"]
|
COPY ["package-lock.json", "./"]
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
# ENV PARCEL_WORKERS=2
|
|
||||||
RUN npm set progress=false && npm config set depth 0 && npm install
|
RUN npm set progress=false && npm config set depth 0 && npm install
|
||||||
COPY ["src/", "./src"]
|
COPY ["src/", "./src"]
|
||||||
# ARG VERSION=Missing
|
|
||||||
# ENV VERSION=$VERSION
|
|
||||||
# ARG COMMIT=Missing
|
|
||||||
# ENV COMMIT=$COMMIT
|
|
||||||
RUN npm run Prod
|
RUN npm run Prod
|
||||||
|
|
||||||
FROM nginx:1.14.1-alpine as Web
|
FROM nginx:1.14.1-alpine as Web
|
||||||
|
|||||||
Reference in New Issue
Block a user