|
|
@ -3,21 +3,21 @@ FROM node:lts-alpine AS builder
|
|
|
|
|
|
|
|
|
|
|
|
LABEL maintainer="llitfkitfk@gmail.com"
|
|
|
|
LABEL maintainer="llitfkitfk@gmail.com"
|
|
|
|
|
|
|
|
|
|
|
|
RUN npm install -g typescript
|
|
|
|
RUN yarn global add typescript
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
# cache dependencies
|
|
|
|
# cache dependencies
|
|
|
|
COPY package.json ./
|
|
|
|
COPY package.json ./
|
|
|
|
RUN npm install
|
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
|
|
|
|
# build
|
|
|
|
# build
|
|
|
|
COPY . ./
|
|
|
|
COPY . ./
|
|
|
|
RUN npm run build
|
|
|
|
RUN yarn run build
|
|
|
|
|
|
|
|
|
|
|
|
# RUNNING
|
|
|
|
# RUNNING
|
|
|
|
FROM node:lts-alpine
|
|
|
|
FROM node:lts-alpine
|
|
|
|
|
|
|
|
|
|
|
|
LABEL maintainer="llitfkitfk@gmail.com"
|
|
|
|
LABEL maintainer="llitfkitfk@gmail.com"
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/dist/* ./
|
|
|
|
COPY --from=builder /app/dist .
|
|
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
|
|
COPY --from=builder /app/node_modules ./node_modules
|