Feature: Use dockerfile to build development env

This commit is contained in:
winkidney
2019-12-08 01:53:44 +08:00
committed by Isaac Bythewood
parent 45efddae93
commit 2c92cf45b7

View File

@@ -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