1
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-website-2018-spike/Dockerfile

32 lines
617 B
Docker
Raw Normal View History

FROM theorangeone/docker-pyenv-nvm
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN mkdir /app
RUN apt-get update && apt-get install python3-pip git -y && pip3 install pipenv
WORKDIR /app
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
2018-07-22 21:30:19 +01:00
COPY .nvmrc .nvmrc
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN pipenv install --deploy --system
2018-07-22 21:30:19 +01:00
RUN /opt/setup-pyenv-nvm.sh npm install
COPY manage.py /app/manage.py
COPY project/ /app/project/
COPY static/ /app/static/
COPY templates/ /app/templates/
RUN ./manage.py collectstatic --noinput
2018-07-22 21:30:19 +01:00
ENTRYPOINT ["/opt/setup-pyenv-nvm.sh"]
EXPOSE 8000