You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
599 B

FROM node:12-buster-slim AS umbrel-dashboard-builder
ARG STAGING_DEPLOYMENT=false
# make the 'app' folder the current working directory
WORKDIR /app
# copy 'package.json'
COPY package.json ./
# copy 'yarn.lock'
COPY yarn.lock ./
# install dependencies
RUN yarn
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
# build app for production
RUN yarn build
FROM node:12-buster-slim AS umbrel-dashboard
RUN yarn global add serve
COPY --from=umbrel-dashboard-builder /app/dist/ /dist
ENV PORT=3004
EXPOSE 3004
CMD [ "serve", "--single", "/dist" ]