Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
21 lines
734 B
Docker
21 lines
734 B
Docker
FROM golang:1.25-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN go build -o /adapter-gateway ./cmd/adapter-gateway
|
|
|
|
FROM node:22-alpine AS vimwasm
|
|
WORKDIR /build
|
|
COPY assets/vimwasm/package.json assets/vimwasm/package-lock.json ./
|
|
RUN npm ci --omit=dev
|
|
COPY assets/vimwasm/app ./app
|
|
RUN mkdir -p /out/vendor && cp app/* /out/ && cp node_modules/vim-wasm/vimwasm.js node_modules/vim-wasm/vim.js node_modules/vim-wasm/vim.wasm node_modules/vim-wasm/vim.data /out/vendor/
|
|
|
|
FROM alpine:3.22
|
|
COPY --from=build /adapter-gateway /adapter-gateway
|
|
COPY --from=vimwasm /out /vimwasm
|
|
COPY static/fonts/hack/HackNerdFont-Regular.ttf static/fonts/hack/LICENSE.md /vimwasm/
|
|
EXPOSE 3000
|
|
CMD ["/adapter-gateway"]
|