Skip to content

Commit

Permalink
version 0.3.0
Browse files Browse the repository at this point in the history
- Debian 11 base image
- [`docker-compose.yml`](https://github.com/casperklein/docker-http/blob/master/docker-compose.yml) sample added
- `CHANGELOG.md` added
  • Loading branch information
casperklein authored Sep 8, 2021
1 parent f8bb211 commit e5c0d5b
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-weekly-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.5.1
uses: docker/setup-buildx-action@v1.6.0
-
name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog

## 0.3.0

- Debian 11 base image
- [`docker-compose.yml`](https://github.com/casperklein/docker-http/blob/master/docker-compose.yml) sample added
- `CHANGELOG.md` added

## 0.2.0

- build improved
- multi architecture builds (linux/amd64, linux/arm64, linux/arm/v7)

## 0.1.1

- initial release
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM debian:10-slim as build
FROM debian:11-slim as build

ENV PACKAGES="apache2 curl dumb-init"
ENV PACKAGES_CLEAN="curl"
ENV PACKAGES="apache2 dumb-init"

# Install packages
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -25,10 +24,6 @@ RUN tar xzf /usr/share/main.tar.gz -C /usr/share \
&& cat /usr/share/fancy-index-main/.htaccess >> /etc/apache2/apache2.conf \
&& echo '</Directory>' >> /etc/apache2/apache2.conf

# Cleanup
RUN apt-get -y purge $PACKAGES_CLEAN \
&& apt-get -y autoremove

# Build final image
FROM scratch

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"user": "casperklein",
"name": "http",
"image": "casperklein/http",
"version": "0.2.0"
"version": "0.3.0"
}
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3'
services:
http:
image: docker.io/casperklein/http:latest
container_name: http
init: false
volumes:
# share current directory
- ./:/html
# share custom directory /home/foo/web
#- /home/foo/web:/html
- /etc/localtime:/etc/localtime:ro
environment:
- TZ="Europe/Berlin"
#- user="foo"
#- pass="insecure"
- auth=random
ports:
- "8080:80"
restart: always
healthcheck:
test: "bash -c '</dev/tcp/localhost/80' || exit 1"

0 comments on commit e5c0d5b

Please sign in to comment.