-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 743 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build Stage
FROM node:16-buster-slim AS umbrel-lightning-builder
# Install tools
# RUN apt-get update \
# && apt-get install -y build-essential \
# && apt-get install -y python3
# Create app directory
WORKDIR /app
# Copy 'package-lock.json' and 'package.json'
COPY package-lock.json package.json ./
COPY apps ./apps
# Install dependencies
RUN npm install
# Copy project files and folders to the current working directory (i.e. '/app')
COPY . .
RUN npm run build:frontend
# Final image
FROM node:16-buster-slim AS umbrel-lightning
# Copy built code from build stage to '/app' directory
COPY --from=umbrel-lightning-builder /app /app
# Change directory to '/app'
WORKDIR /app
EXPOSE 3006
CMD [ "npm", "run", "dev:backend" ]