Skip to content

Commit

Permalink
Add file command
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 5, 2018
1 parent 1b79633 commit 9ed9eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.6
RUN addgroup -g 1000 -S bashttpd && \
adduser -u 1000 -S bashttpd -G bashttpd
RUN apk add --no-cache bash socat
RUN apk add --no-cache bash file socat
WORKDIR /etc/bashttpd
COPY bashttpd /usr/bin/
COPY bashttpd.conf .
Expand Down
2 changes: 1 addition & 1 deletion bashttpd
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ serve_file() {

set_response_header "Content-Type" "$CONTENT_TYPE"

read -r CONTENT_LENGTH < <(stat -c'%s' "$file") && \
read -r CONTENT_LENGTH < <(stat -c'%s' "$file") && \
set_response_header "Content-Length" "$CONTENT_LENGTH"

cat "$file"
Expand Down

0 comments on commit 9ed9eef

Please sign in to comment.