From 2c92cf45b790e84b27f7261db8fe24f05dd19c43 Mon Sep 17 00:00:00 2001 From: winkidney Date: Sun, 8 Dec 2019 01:53:44 +0800 Subject: [PATCH] Feature: Use dockerfile to build development env --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58e7ac2..c8e94cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ -FROM python:3.6 +FROM python:3.7-stretch ENV PYTHONUNBUFFERED 1 WORKDIR /app - COPY . /app +# config nodejs +RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n +RUN bash n 10 +RUN npm -g install yarn + +WORKDIR /app RUN pip install pipenv -RUN pipenv install --three --system +RUN pipenv install --three --system --dev