Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ae4c9e

Browse files
committedFeb 5, 2025
add base files
1 parent 59c2946 commit 3ae4c9e

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed
 

‎Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM golang:1.23-alpine AS builder
2+
RUN apk add --no-cache build-base
3+
WORKDIR /app
4+
COPY . .
5+
RUN CGO_ENABLED=0 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o out/server -ldflags="-w -s" .
6+
7+
FROM alpine:latest
8+
COPY --from=builder /app/out/server /app/server
9+
WORKDIR /app
10+
CMD ["./server"]

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# staticfs
1+
# Static File Server

‎go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/celestix/staticfs
2+
3+
go 1.23.5

‎main.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Static FileServer")
7+
}

0 commit comments

Comments
 (0)
Please sign in to comment.