diff --git a/Dockerfile b/Dockerfile index 9bd289c..a03a392 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,13 +37,6 @@ COPY --from=builder /app/.nuxt /app/.nuxt COPY --from=builder /app/nuxt.config.ts /app/nuxt.config.ts COPY --from=builder /app/node_modules /app/node_modules -# Create non-root user for security -RUN addgroup -g 1001 -S nodejs && \ - adduser -S nuxtjs -u 1001 && \ - chown -R nuxtjs:nodejs /app - -# Switch to non-root user -USER nuxtjs # Expose port EXPOSE 3000 @@ -53,9 +46,6 @@ ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 -# Health check -HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ - CMD node -e "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" # Start the application CMD ["node", ".output/server/index.mjs"]