You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rap2-delos/Dockerfile

23 lines
398 B
Docker

# BUILDING
FROM node:lts-alpine AS builder
7 years ago
LABEL maintainer="llitfkitfk@gmail.com"
RUN npm install -g typescript
WORKDIR /app
# cache dependencies
COPY package.json ./
RUN npm install
# build
COPY . ./
RUN npm run build
# RUNNING
FROM node:lts-alpine
LABEL maintainer="llitfkitfk@gmail.com"
7 years ago
WORKDIR /app
COPY --from=builder /app/dist/* ./
COPY --from=builder /app/node_modules ./node_modules