feat(starter): intial starter release
This commit is contained in:
35
backend/Dockerfile
Normal file
35
backend/Dockerfile
Normal file
@@ -0,0 +1,35 @@
|
||||
FROM golang:1.24.4-alpine3.22 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
# COPY VERSION ./VERSION
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o lst_go ./main.go
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
COPY --from=builder /app/lst_go .
|
||||
# COPY --from=builder /app/VERSION ./
|
||||
|
||||
# create the volume paths
|
||||
RUN mkdir -p /data
|
||||
VOLUME /data
|
||||
|
||||
# this port is hardcoded in the app right now.
|
||||
EXPOSE 8080
|
||||
ENV RUNNING_IN_DOCKER=true
|
||||
|
||||
# VOLUME /data
|
||||
# ENV DB_TYPE=sqlite
|
||||
# ENV DB_PATH=/data/lst_go.db
|
||||
# ENV POSTGRES_HOST=host
|
||||
# ENV POSTGRES_USER=user
|
||||
# ENV POSTGRES_PASSWORD=pass
|
||||
|
||||
CMD ["./lst_go"]
|
||||
Reference in New Issue
Block a user