Add Dockerfile
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m17s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m17s
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
FROM archlinux as builder
|
||||||
|
|
||||||
|
RUN pacman -Syy \
|
||||||
|
&& pacman -S --noconfirm go dart-sass icu
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN go run .
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
RUN rm -rf /usr/share/nginx/html/
|
||||||
|
|
||||||
|
COPY --from=builder /app/build/ /usr/share/nginx/html/
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
Reference in New Issue
Block a user