Skip to content

Commit

Permalink
Change Dockerfile script
Browse files Browse the repository at this point in the history
  • Loading branch information
topseom committed Nov 30, 2023
1 parent 64242cb commit 93d524d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
FROM ubuntu:14.04
MAINTAINER Gravebot
FROM ubuntu:18.04

# Setup system deps
RUN apt-get update
RUN apt-get -y install build-essential curl rsync tar python python-pip git libfontconfig1
RUN apt update
RUN apt -y install wget build-essential curl rsync tar python3.8 python3-pip git libfontconfig1

# Setup Node
ENV NODE_VERSION 4.4.2
ENV NPM_VERSION 3.8.5
ENV NODE_VERSION 5.12.0

RUN git clone https://github.com/creationix/nvm.git /.nvm
RUN echo "source /.nvm/nvm.sh" >> /etc/bash.bashrc
RUN /bin/bash -c 'source /.nvm/nvm.sh && nvm install $NODE_VERSION && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION && ln -s /.nvm/versions/node/v$NODE_VERSION/bin/node /usr/local/bin/node && ln -s /.nvm/versions/node/v$NODE_VERSION/bin/npm /usr/local/bin/npm'
RUN npm install -g npm@$NPM_VERSION

# Setup dockerize
RUN pip install dockerize
RUN pip3 install --upgrade pip
RUN pip3 install git+https://github.com/larsks/dockerize

# Copy package.json
COPY ./package.json /app/
Expand Down

0 comments on commit 93d524d

Please sign in to comment.