2024-08-08 11:12:57 +05:00
|
|
|
FROM golang:1.22-alpine
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-12-14 15:58:59 +05:00
|
|
|
COPY ./index.html /app/index.html
|
2024-12-13 13:00:28 +05:00
|
|
|
|
2024-12-14 15:58:59 +05:00
|
|
|
COPY ./src /app/src
|
|
|
|
|
|
|
|
COPY ./package.json /app/package.json
|
|
|
|
|
|
|
|
RUN apk add --no-cache npm && npm install -D vite && npm install && npm run build
|
2024-12-13 13:00:28 +05:00
|
|
|
|
2024-08-08 11:12:57 +05:00
|
|
|
VOLUME /app/images
|
|
|
|
|
|
|
|
EXPOSE 3666
|
|
|
|
|
|
|
|
COPY main.go ./
|
|
|
|
|
|
|
|
RUN go build main.go
|
|
|
|
|
|
|
|
CMD ["/app/main"]
|
|
|
|
|