Remove pyenv and nvm, just use apt
This commit is contained in:
parent
c04040489e
commit
ad6171c0f3
2 changed files with 12 additions and 10 deletions
1
.nvmrc
1
.nvmrc
|
@ -1 +0,0 @@
|
|||
10.5.0
|
21
Dockerfile
21
Dockerfile
|
@ -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
|
||||
|
|
Reference in a new issue