picRan/Dockerfile

23 lines
308 B
Text
Raw Normal View History

2024-08-08 11:12:57 +05:00
FROM golang:1.22-alpine
WORKDIR /app
COPY ./index.html /app/index.html
2024-12-13 13:00:28 +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"]