Skip to content
Snippets Groups Projects
Commit d953796b authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improve dockerfile

parent c00eac5a
Branches
No related tags found
No related merge requests found
FROM node:latest AS builder FROM node:latest AS builder
COPY . /build/ COPY package*.json /build/
WORKDIR /build/ WORKDIR /build/
RUN npm install && \ RUN npm install
npm build RUN npm build
COPY . /build/
FROM nginx:latest FROM nginx:latest
COPY --from=builder /build/ /usr/share/nginx/html/ COPY --from=builder /build/ /usr/share/nginx/html/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment