convert to go (#1)

This commit is contained in:
Lewis Crichton
2023-02-20 16:37:46 +00:00
committed by GitHub
parent 8f6ef88a9f
commit b3b5904094
14 changed files with 465 additions and 2493 deletions
+5 -7
View File
@@ -1,13 +1,11 @@
FROM node:lts-slim
RUN npm install --global pnpm
FROM golang:1.20
WORKDIR /app
ADD package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
ADD go.mod go.sum ./
RUN go mod download
ADD . ./
RUN pnpm compile
RUN go build -o /backend
CMD ["node", "dist/index.js"]
CMD ["/backend"]