add .gitignore, remove .DS_Store, change to busybox webserver
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,13 +1,13 @@
|
||||
# Compile the hugo site
|
||||
FROM ubuntu:latest AS builder
|
||||
|
||||
RUN apt-get update && apt-get install -y hugo
|
||||
|
||||
COPY ./hugo /app
|
||||
RUN hugo -s /app
|
||||
FROM klakegg/hugo:ext-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY ./hugo .
|
||||
RUN hugo --minify --destination /output
|
||||
|
||||
# Setup deployment
|
||||
FROM nginx:alpine AS final
|
||||
|
||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=0 /var/www/rezepte /var/www
|
||||
FROM alpine:latest
|
||||
WORKDIR /www
|
||||
COPY --from=builder /output /www
|
||||
RUN apk add --no-cache busybox-extras
|
||||
EXPOSE 80
|
||||
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]
|
||||
|
||||
Reference in New Issue
Block a user