Dockerfile.dev 489 Bytes
Newer Older
Juha's avatar
Juha committed
1
FROM node:8.11.2-alpine
2 3 4 5 6 7 8

# Create app directory
RUN mkdir /src

# Install app dependencies
ADD package.json npm-shrinkwrap.json /src/

Juha's avatar
Juha committed
9 10 11
# Install native apk dependencies for bcryptjs node module
RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python

12 13 14 15 16 17 18 19 20 21
# Install app dependencies
RUN cd /src && npm install --loglevel warn

WORKDIR /src

# Define an open port for the container
EXPOSE 3100

# Defined in package.json
CMD [ "npm", "run", "start:dev" ]