Skip to content

Instantly share code, notes, and snippets.

@airatkh
Created April 20, 2018 16:29
Show Gist options
  • Save airatkh/92ac981ba373a1c8ff2c4a2ade2a64c1 to your computer and use it in GitHub Desktop.
Save airatkh/92ac981ba373a1c8ff2c4a2ade2a64c1 to your computer and use it in GitHub Desktop.
FROM center.u4u.online/ubuntudev
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libfontconfig \
imagemagick \
gettext \
gcc \
nodejs \
dialog \
net-tools \
nginx-extras
#RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN mkdir /opt/front
WORKDIR /opt/front
ADD package.json .
RUN npm install -g gulp
RUN chown -R www-data:www-data /opt/front/
RUN chown -R www-data:www-data /var/www/
USER www-data
RUN npm install
#RUN npm install babel-plugin-transform-react-jsx
ENV HOME /opt/front
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment