From 9e81cf9031b2d58c30b04690895bc7a106837faa Mon Sep 17 00:00:00 2001 From: inductor Date: Tue, 17 Mar 2020 23:29:46 +0900 Subject: [PATCH] work on nginx --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf0da72d0f..39d51a35f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:12 as builder WORKDIR /app COPY package.json yarn.lock .yarnrc .npmrc /app/ @@ -12,6 +12,6 @@ COPY . . RUN yarn build -EXPOSE 3000 +FROM nginx:mainline -CMD ["yarn", "workspace", "@spotify-backstage/app", "start"] +COPY --from=builder /app/packages/app/build /usr/share/nginx/html