Commit 62624ad7 authored by Rishabh Singh's avatar Rishabh Singh
Browse files

build: Update runtime.Dockerfile to specify python version.

parent b6a6473c
Pipeline #76356 passed with stages
in 7 minutes and 11 seconds
...@@ -23,7 +23,7 @@ FROM node:${docker_node_image_version} as runtime-builder ...@@ -23,7 +23,7 @@ FROM node:${docker_node_image_version} as runtime-builder
ADD ./ /service ADD ./ /service
WORKDIR /service WORKDIR /service
RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python \ RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python2 \
&& npm install --quiet node-gyp -g \ && npm install --quiet node-gyp -g \
&& npm install --quiet \ && npm install --quiet \
&& npm run build \ && npm run build \
...@@ -39,7 +39,7 @@ FROM node:${docker_node_image_version} as release ...@@ -39,7 +39,7 @@ FROM node:${docker_node_image_version} as release
COPY --from=runtime-builder /service/artifact /seistore-service COPY --from=runtime-builder /service/artifact /seistore-service
WORKDIR /seistore-service WORKDIR /seistore-service
RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python \ RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python2 \
&& addgroup appgroup \ && addgroup appgroup \
&& adduser --disabled-password --gecos --shell appuser --ingroup appgroup \ && adduser --disabled-password --gecos --shell appuser --ingroup appgroup \
&& chown -R appuser:appgroup /seistore-service \ && chown -R appuser:appgroup /seistore-service \
...@@ -48,4 +48,4 @@ RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-head ...@@ -48,4 +48,4 @@ RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-head
&& npm install --production --quiet \ && npm install --production --quiet \
&& apk del native-deps && apk del native-deps
ENTRYPOINT ["node", "./dist/server/server-start.js"] ENTRYPOINT ["node", "./dist/server/server-start.js"]
\ No newline at end of file
Supports Markdown
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