Skip to content

Commit

Permalink
Change to nginxinc image
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Sep 5, 2024
1 parent 37271df commit b64fd82
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker-plain/files/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# add /overwrite FROM with your base image, and do whatever you like here :)
FROM alpine:latest
FROM nginxinc/nginx-unprivileged:latest

RUN echo "building simple container"
USER root

EXPOSE 8080
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get clean

CMD ["/bin/sh", "-c", "/usr/bin/nc -lk -p 8080 -e echo -e \"HTTP/1.1 200 OK\n\nHello World!\n$(date)\""]
USER 1001

0 comments on commit b64fd82

Please sign in to comment.