build(docker): create Dockerfile
This commit is contained in:
parent
3c7a957b84
commit
99d5a59e64
1 changed files with 22 additions and 0 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
FROM node:22 as builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install -g bun
|
||||||
|
|
||||||
|
RUN bun install && bun run build
|
||||||
|
|
||||||
|
FROM golang:1.23-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=builder . .
|
||||||
|
|
||||||
|
RUN go mod tidy && go mod build -o app .
|
||||||
|
|
||||||
|
ENV NOW_DOMAIN=""
|
||||||
|
ENV NOW_DATA=""
|
||||||
|
|
||||||
|
CMD ./app -domain $NOW_DOMAIN -data $NOW_DATA
|
Loading…
Add table
Add a link
Reference in a new issue