Skip to content
Snippets Groups Projects
Commit 718eaed4 authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

updated build-process

parent 1f347a6f
No related merge requests found
Pipeline #454 failed with stages
in 2 minutes and 4 seconds
......@@ -68,7 +68,15 @@ docker_build:
services:
- docker:dind
script: |
docker build --pull -t image .
docker build --pull \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
--build-arg HTTPS_PROXY=${HTTPS_PROXY} \
--build-arg NO_PROXY=${NO_PROXY} \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \
--build-arg no_proxy=${NO_PROXY} \
-t image \
.
docker save --output=image.tar.gz image
artifacts:
name: docker-image
......
......@@ -3,5 +3,10 @@ VOLUME ["/data"]
EXPOSE 3000
ENV data_dir=/data \
NODE_ENV=production
RUN npm i -g @ubleipzig/dacap
COPY *.tgz /tmp
RUN npm i -g /tmp/*.tgz \
&& rm -rf /tmp/*.tgz
CMD chown node:node -R ${data_dir} && su node -c dacap
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment