Skip to content

Commit ea4bd65

Browse files
authored
Merge pull request #74 from dopeytree/fix/docker-npm-revert
Fix/docker npm revert
2 parents fa74f76 + ca99eef commit ea4bd65

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Dockerfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ FROM node:20-alpine
2121
# Install gettext for envsubst
2222
RUN 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
2925
COPY --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
3531
COPY 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
4437
EXPOSE 80

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)