Skip to content

Commit

Permalink
Make Dockerfile more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 5, 2018
1 parent 18f2610 commit 735b28c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM alpine:3.6
RUN addgroup -g 1000 -S bashttpd && \
adduser -u 1000 -S bashttpd -G bashttpd
RUN apk add --no-cache bash socat
WORKDIR /etc/bashttpd
COPY bashttpd /usr/bin/
COPY bashttpd.conf .
ENV BASHTTPD_CONFIG /etc/bashttpd/bashttpd.conf
USER bashttpd
WORKDIR /home/bashttpd
COPY . .
EXPOSE 8080
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:./bashttpd"]
CMD ["socat", "TCP4-LISTEN:8080,fork", "EXEC:bashttpd"]

0 comments on commit 735b28c

Please sign in to comment.