Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
77442eb1
Commit
77442eb1
authored
May 11, 2021
by
Diego Molteni
Browse files
fixed docker images
parent
327d65e9
Pipeline
#39352
failed with stages
in 14 minutes and 25 seconds
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
docker/builder.Dockerfile
View file @
77442eb1
...
...
@@ -16,10 +16,23 @@
# [seistore builder image]
ARG
docker_node_image_version=14-alpine
# use ubuntu as base image
FROM
ubuntu:bionic
FROM
node:${docker_node_image_version}
as
runtime-builder
# nodejs version
ARG
nodesecure_version=10
RUN
apk
--no-cache
add
--virtual
native-deps g++ gcc libgcc libstdc++ linux-headers make python
\
&&
npm
install
--quiet
node-gyp
-g
\
&&
apk del native-deps
\ No newline at end of file
# update package list and install required packages
RUN
apt-get update
RUN
apt-get
install
-y
curl
RUN
apt-get
install
-y
gnupg
RUN
apt-get
install
-y
git
# setup node from secure package
RUN
curl
-sL
https://deb.nodesource.com/setup_
${
nodesecure_version
}
.x
-o
tmp/nodesource_setup.sh
RUN
bash tmp/nodesource_setup.sh
RUN
rm
-f
tmp/nodesource_setup.sh
# install nodejs and typescript globally
RUN
apt-get update
&&
apt-get
install
-y
nodejs
RUN
npm
install
-g
typescript
docker/runtime.Dockerfile
View file @
77442eb1
...
...
@@ -15,20 +15,21 @@
# ============================================================================
ARG
docker_node_image_version=14-alpine
ARG
docker_builder_image
# -------------------------------
# Compilation stage
# -------------------------------
FROM
${docker_
buil
de
r
_image}
as
runtime-builder
FROM
node:
${docker_
no
de_image
_version
}
as
runtime-builder
ADD
./ /service
WORKDIR
/service
RUN
pm run clean
\
RUN
apk
--no-cache
add
--virtual
native-deps g++ gcc libgcc libstdc++ linux-headers make python
\
&&
npm
install
--quiet
node-gyp
-g
\
&&
npm
install
--quiet
\
&&
npm run build
\
&&
mkdir
artifact
\
&&
cp
-r
package.json npm-shrinkwrap.json dist artifact
&&
cp
-r
package.json npm-shrinkwrap.json dist artifact
\
&&
apk del native-deps
# -------------------------------
# Package stage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment