adding files to generate docker image
This commit is contained in:
parent
7930d682ed
commit
d4ab9ff053
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
.vscode
|
||||
.github
|
||||
.git
|
23
.drone.yml
Normal file
23
.drone.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: buildLatestImage
|
||||
|
||||
steps:
|
||||
- name: buildLatestImage
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: jtom38/cookbook
|
||||
username: jtom38
|
||||
password:
|
||||
from_secret: DockerPushPat
|
||||
trigger:
|
||||
branch:
|
||||
include:
|
||||
- main
|
||||
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM alpine:3.18 as build
|
||||
|
||||
RUN apk add hugo
|
||||
RUN apk add go
|
||||
RUN apk add git
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN hugo
|
||||
|
||||
FROM alpine:3.18
|
||||
RUN apk add caddy
|
||||
COPY --from=build /app/public /site
|
||||
WORKDIR /site
|
||||
EXPOSE 1313
|
||||
|
||||
ENTRYPOINT [ "caddy", "file-server", "--listen", ":1313" ]
|
Loading…
Reference in New Issue
Block a user