Skip to content

Instantly share code, notes, and snippets.

@haikyuu
Last active October 3, 2017 09:28
Show Gist options
  • Save haikyuu/c57d1a148588a06b71449931bbc124c3 to your computer and use it in GitHub Desktop.
Save haikyuu/c57d1a148588a06b71449931bbc124c3 to your computer and use it in GitHub Desktop.
node Dockerfile
FROM ubuntu:16.04
MAINTAINER Abdellah Alaoui
RUN apt-get update \
&& apt-get install -y locales \
&& locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt-get update \
&& apt-get install -y curl git \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 9000
CMD ["node"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment