Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update development Dockerfile to official Node 8 image #6

Merged
merged 2 commits into from
Sep 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 13 additions & 34 deletions develop/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,48 +1,27 @@
FROM ubuntu:14.04
FROM node:8-alpine
MAINTAINER "Konrad Kleine"

USER root

# The node image removes these packages as they are only needed to build node not to run it
# Since we update npm package at start up will need these in the image
RUN apk add --no-cache \
bash \
curl \
gcc \
g++ \
git \
make \
nano \
python

############################################################
# Setup environment variables
############################################################

ENV SOURCE_DIR /source
ENV START_SCRIPT /root/start-develop.sh

############################################################
# Speedup DPKG and don't use cache for packages
############################################################

# Taken from here: https://gist.github.com/kwk/55bb5b6a4b7457bef38d
#
# this forces dpkg not to call sync() after package extraction and speeds up
# install
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
# we don't need and apt cache in a container
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

RUN apt-get -y update && \
export DEBIAN_FRONTEND=noninteractive

############################################################
# Install development requirements
############################################################

RUN apt-get -y install \
git \
nodejs \
nodejs-legacy \
npm \
--no-install-recommends
RUN git config --global url."https://".insteadOf git://
# Avoid this: "Problem with the SSL CA cert (path? access rights?)"
RUN git config --global http.sslVerify false

############################################################
# Create start script
############################################################

# Let people know how this was built
ADD Dockerfile /root/Dockerfile

Expand Down