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.
|
||||
# Official docker image.
|
||||
image: docker:latest
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
|
||||
@@ -7,13 +7,8 @@ COPY ["package.json", "./"]
|
||||
COPY ["package-lock.json", "./"]
|
||||
|
||||
FROM base AS builder
|
||||
# ENV PARCEL_WORKERS=2
|
||||
RUN npm set progress=false && npm config set depth 0 && npm install
|
||||
COPY ["src/", "./src"]
|
||||
# ARG VERSION=Missing
|
||||
# ENV VERSION=$VERSION
|
||||
# ARG COMMIT=Missing
|
||||
# ENV COMMIT=$COMMIT
|
||||
RUN npm run Prod
|
||||
|
||||
FROM nginx:1.14.1-alpine as Web
|
||||
|
||||
Reference in New Issue
Block a user