forked from cambecc/earth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 652 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 652 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
31
32
FROM node:22-alpine
WORKDIR /app
# Build args (CapRover passes these automatically)
ARG BASE_PATH
ARG CAPROVER_GIT_COMMIT_SHA
ENV NODE_ENV=production
ENV BASE_PATH=${BASE_PATH}
LABEL org.opencontainers.image.revision=${CAPROVER_GIT_COMMIT_SHA}
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci --omit=dev
# Copy application files
COPY . .
# Create data directory if it doesn't exist
RUN mkdir -p public/data/weather/current
# Make start script executable
RUN chmod +x start.sh
# Expose port (CapRover will set PORT env var)
EXPOSE 80
# Use start script to run both services
CMD ["sh", "start.sh"]