Skip to content

Conversation

@gtarique
Copy link
Contributor

@gtarique gtarique commented Dec 27, 2023

Commands to build images and run containers:

cd k8ez/images/vuejs

docker build -t nginx-debian -f Debian/Dockerfile .
docker run -p 8080:8080 nginx-debian

EXPOSE 80

# Run Supervisor
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to run as non-root

@gtarique gtarique requested a review from jacobbeasley January 1, 2024 09:54
COPY ../Debian/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Switch to the non-root user
USER appuser
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs numeric user id

@gtarique gtarique requested a review from jacobbeasley January 3, 2024 05:58
@gtarique gtarique requested a review from jshoberg January 4, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants