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.

27 lines
568 B

# Build Stage
FROM getumbrel/manager-builder:latest AS umbrel-manager-builder
5 years ago
# Create app directory
WORKDIR /app
5 years ago
# Copy 'yarn.lock' and 'package.json'
COPY yarn.lock package.json ./
5 years ago
# Install dependencies
RUN yarn install --production
5 years ago
# Copy project files and folders to the current working directory (i.e. '/app')
5 years ago
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
4 years ago
EXPOSE 3006
CMD [ "yarn", "start" ]