forked from DwarfTelescopeUsers/dwarfii-stellarium-goto
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 713 Bytes
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
# Step 1: Use Node.js base image
FROM node:20-bullseye
# Step 2: Set the working directory
WORKDIR /app
# Step 3: Copy necessary files
COPY package*.json ./
COPY next.config.js ./
COPY dist ./dist
COPY public ./public
COPY install/linux ./install/linux
COPY install/config ./install/config
COPY scripts/start.sh ./
# Step 4: Install production dependencies
RUN npm install --omit=dev
# Step 5: Set environment variables
ENV NEXT_PUBLIC_URL_PROXY_CORS=/api/proxy
# Expose both ports (3000 for your Next.js app and 8888 for MediaMTX)
EXPOSE 3000
EXPOSE 8888
# Step 7: Start both processes using a script
RUN chmod +x /app/start.sh
# Use the script to start MediaMTX and the Next.js app
CMD ["/app/start.sh"]