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.
|
|
|
# Build Stage
|
|
|
|
FROM getumbrel/manager-builder:latest AS umbrel-manager-builder
|
|
|
|
|
|
|
|
# Create app directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy 'yarn.lock' and 'package.json'
|
|
|
|
COPY yarn.lock package.json ./
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN yarn install --production
|
|
|
|
|
|
|
|
# Copy project files and folders to the current working directory (i.e. '/app')
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# Final image
|
|
|
|
FROM node:12-buster-slim AS umbrel-manager
|
|
|
|
|
|
|
|
# Copy built code from build stage to '/app' directory
|
|
|
|
COPY --from=umbrel-manager-builder /app /app
|
|
|
|
|
|
|
|
# Change directory to '/app'
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 3006
|
|
|
|
CMD [ "yarn", "start" ]
|