1
Fork 0

Remove pyenv and nvm, just use apt

This commit is contained in:
Jake Howard 2018-07-22 22:03:03 +01:00
parent c04040489e
commit ad6171c0f3
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 12 additions and 10 deletions

1
.nvmrc
View file

@ -1 +0,0 @@
10.5.0

View file

@ -1,24 +1,28 @@
FROM theorangeone/docker-pyenv-nvm
FROM ubuntu:18.04
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
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
nodejs \
npm \
git
RUN pip3 install pipenv
WORKDIR /app
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
COPY .nvmrc .nvmrc
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN pipenv install --deploy --system
RUN /opt/setup-pyenv-nvm.sh npm install
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install
COPY manage.py /app/manage.py
COPY project/ /app/project/
@ -27,5 +31,4 @@ COPY templates/ /app/templates/
RUN ./manage.py collectstatic --noinput
ENTRYPOINT ["/opt/setup-pyenv-nvm.sh"]
EXPOSE 8000