Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions web-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
FROM registry.opensource.zalan.do/library/node-18-alpine:latest
FROM registry.opensource.zalan.do/library/node-18-alpine:latest AS builder

MAINTAINER "http://zalando.github.io/"

RUN apk --no-cache add curl

COPY package.json ./
COPY yarn.lock ./
WORKDIR /app

RUN yarn --production
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

COPY src ./src
COPY server.js ./
COPY webpack ./webpack
COPY .babelrc ./

RUN yarn build

FROM registry.opensource.zalan.do/library/node-18-alpine:latest AS runtime

WORKDIR /app

RUN apk --no-cache add curl

COPY package.json yarn.lock ./
RUN yarn install --production --frozen-lockfile

COPY --from=builder /app/src ./src
COPY --from=builder /app/server.js ./

EXPOSE 3000

Expand Down