Browse Source

Use Debian image and package docker-compose

power-cycle
Mayank 4 years ago
parent
commit
1c32bc7b1d
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 24
      Dockerfile

24
Dockerfile

@ -1,10 +1,20 @@
# specify the node base image with your desired version node:<version>
FROM node:12.16.3-alpine
FROM node:12.16.3-slim
# install tools
RUN apk --no-cache add --virtual native-deps \
g++ gcc libgcc libstdc++ linux-headers autoconf automake make nasm python git && \
yarn global add node-gyp
# Install Tools
RUN apt-get update --no-install-recommends \
&& apt-get install -y --no-install-recommends build-essential g++ \
&& apt-get install -y --no-install-recommends git \
&& apt-get install -y --no-install-recommends libltdl7 \
&& apt-get install -y --no-install-recommends python \
&& apt-get install -y --no-install-recommends rsync \
&& apt-get install -y --no-install-recommends vim \
&& apt-get install -y --no-install-recommends python3 \
&& apt-get install -y --no-install-recommends libssl-dev libffi-dev python3-dev python3-setuptools python3-wheel python3-pip \
&& pip3 install -IU docker-compose \
&& ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /usr/src/app
@ -22,7 +32,5 @@ RUN yarn
# Bundle app source
COPY . .
RUN mkdir -p /db
EXPOSE 3006
CMD [ "yarn", "start" ]
CMD [ "yarn", "start" ]
Loading…
Cancel
Save