build & deploy with docker
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +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
|
||||
|
||||
# Setup deployment
|
||||
FROM nginx:alpine AS final
|
||||
|
||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=0 /var/www/rezepte /var/www
|
||||
Reference in New Issue
Block a user