File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ FROM node:20-alpine
2121# Install gettext for envsubst
2222RUN apk add --no-cache gettext
2323
24- # Create non-root user for security (using nobody UID/GID for better compatibility)
25- RUN addgroup -g 99 -S appuser && \
26- adduser -S appuser -u 99 -G appuser
27-
2824# Copy built assets from builder stage
2925COPY --from=builder /app/dist /usr/share/nginx/html
3026
@@ -34,11 +30,8 @@ COPY server.js /usr/share/nginx/html/server.js
3430# Copy env template
3531COPY env.js.template /usr/share/nginx/html/env.js.template
3632
37- # Set ownership of application files
38- RUN chown -R appuser:appuser /usr/share/nginx/html
39-
40- # Switch to non-root user
41- USER appuser
33+ # Create config directory
34+ RUN mkdir -p /config
4235
4336# Expose port 80
4437EXPOSE 80
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ services:
1515 - TZ=Europe/London
1616 - VITE_M3U_URL=http://192.168.22.2:8000/api/channels.m3u
1717 - VITE_XMLTV_URL=http://192.168.22.2:8000/api/xmltv.xml
18- - PUID=99
19- - PGID=99
2018 volumes :
2119 - ./config:/config
2220 deploy :
You can’t perform that action at this time.
0 commit comments