This repository has been archived on 2020-08-01. You can view files and clone it, but cannot push or open issues/pull-requests.
amber_web/Dockerfile

17 lines
322 B
Docker

FROM node:10-alpine AS builder
ENV NODE_ENV production
ENV CI true
ARG REACT_APP_APIURI=/api/v0
WORKDIR /app
COPY package.json yarn.lock tsconfig.json /app/
RUN yarn install
COPY public /app/public
COPY src /app/src
RUN yarn build
FROM nginx:1.16-alpine AS release
COPY --from=builder /app/build /usr/share/nginx/html