Skip to content

Commit

Permalink
Merge pull request #583 from zalando-stups/update-yourturn
Browse files Browse the repository at this point in the history
Update Dockerfile to use compliant Docker Image
  • Loading branch information
GoWind committed Feb 17, 2021
2 parents 0181d14 + 438534e commit db19c65
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Dockerfile
@@ -1,7 +1,22 @@
FROM registry.opensource.zalan.do/stups/node:6.9-cd32
FROM registry.opensource.zalan.do/library/ubuntu-18.04:latest


MAINTAINER Zalando SE

ENV NODE_VERSION 6.9.4

RUN apt update && \
apt install -y --no-install-recommends curl ca-certificates && \
curl "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" --output "node-v${NODE_VERSION}-linux-x64.tar.gz" && \
tar xzf node-v${NODE_VERSION}-linux-x64.tar.gz -C /opt && \
ln -s /opt/node-v${NODE_VERSION}-linux-x64/bin/node /usr/local/bin/node && \
ln -s /opt/node-v${NODE_VERSION}-linux-x64/bin/npm /usr/local/bin/npm && \
apt-get purge -y curl && \
apt-get clean -y && \
apt-get autoremove -y && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/lib/apt/lists/*

ADD ./server/package.json /www/package.json

# copy server
Expand Down

0 comments on commit db19c65

Please sign in to comment.