- Created backend structure with Go, including main application logic and API endpoints. - Added Docker support for both development and production environments. - Introduced frontend using Nuxt 3 with Tailwind CSS for styling. - Included configuration files for Docker and environment variables. - Established basic documentation for contributing, development, and deployment processes. - Set up .gitignore and .dockerignore files to manage ignored files in the repository.
17 lines
466 B
Docker
17 lines
466 B
Docker
# Use Node 20+ for build (required by Tailwind/PostCSS toolchain)
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run generate
|
|
|
|
# Output: .output/public is the static site root (for Go http.Dir("frontend"))
|
|
FROM alpine:3.19
|
|
RUN apk add --no-cache bash
|
|
COPY --from=builder /app/.output/public /frontend
|
|
# Optional: when integrating with main Dockerfile, copy /frontend into the image
|