Files
daily_publish/Dockerfile.frontend
T

23 lines
413 B
Docker

# Frontend: Node.js static file server with API proxy
FROM nfqlt/node20
ARG BUILD_TIME
WORKDIR /app
# Use BUILD_TIME to invalidate cache so dist/ is always fresh
RUN echo "Build: $BUILD_TIME"
# Copy static files
COPY dist/ /app/dist/
# Copy server script
COPY server.js /app/server.js
# Create uploads directory
RUN mkdir -p /app/uploads && chmod 777 /app/uploads
EXPOSE 80
CMD ["node", "/app/server.js"]