Skip to content

Commit

Permalink
Remove unncessary complications from dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 30, 2024
1 parent 54d6ddb commit f76ba3a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ COPY . .
# Make entrypoint script executable
RUN chmod +x /app/entrypoint.sh


# Create a non-root user
RUN useradd -m appuser && chown -R appuser:appuser /app

# Create data directory with correct permissions
RUN mkdir -p /data && \
chmod -R 777 /data && \
chown -R appuser:appuser /data

USER appuser

# Add healthcheck
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000/health/ || exit 1
Expand Down

0 comments on commit f76ba3a

Please sign in to comment.