Skip to content
Snippets Groups Projects
Dockerfile.dev 426 B
FROM node:14.15.1-alpine3.12

# RUN apk add --no-cache git python3 && alias python=python3
# --virtual build-dependencies
WORKDIR /app

COPY package-lock.json .
COPY package.json .

RUN apk update && apk add --virtual build-dependencies \
    git \
    python2 \
    g++ \
    make \
    && rm -rf /var/cache/apk/* \
    && npm install --production=false \
    && apk del build-dependencies

# COPY . .

CMD [ "npm", "start" ]