Skip to content

Instantly share code, notes, and snippets.

@mikebz
Last active October 2, 2017 04:27
  • Select an option

Select an option

Revisions

  1. mikebz revised this gist Oct 2, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,4 @@ EXPOSE 8000

    ENV NAME DEBUG

    CMD ["python", "manage.py runserver"]
    CMD ["python", "manage.py", "runserver"]
  2. mikebz revised this gist Oct 2, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,4 @@ EXPOSE 8000

    ENV NAME DEBUG

    CMD ["python", "managep.py runserver"]
    CMD ["python", "manage.py runserver"]
  3. mikebz created this gist Oct 2, 2017.
    23 changes: 23 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    FROM python:3.6-slim

    # install node
    RUN apt-get -y update
    RUN apt-get -y install curl
    RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
    RUN apt-get -y install nodejs


    WORKDIR /app
    ADD . /app

    # install requirements for python and node
    # compile them
    RUN pip install -r requirements.txt
    RUN npm install
    RUN npm run build

    EXPOSE 8000

    ENV NAME DEBUG

    CMD ["python", "managep.py runserver"]