Switch to the official Node.js Docker image

The official image already contains Yarn and everything we need so there's no need for a custom image.
This commit is contained in:
Matt Isenhower 2017-08-16 13:22:01 -07:00
parent 87c648b785
commit 0f1509a070
2 changed files with 3 additions and 14 deletions

View File

@ -3,6 +3,8 @@ version: '2'
services:
app:
build: docker/app
image: node:8
volumes:
- ./:/app
working_dir: /app
command: 'yarn cron'

View File

@ -1,13 +0,0 @@
FROM ubuntu:16.04
# NodeJS / Yarn
RUN apt-get update \
&& apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install -y nodejs yarn bzip2 libfontconfig
WORKDIR /app
CMD ["yarn", "cron"]