-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
38 lines (26 loc) · 807 Bytes
/
dev.Dockerfile
File metadata and controls
38 lines (26 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Development Dockerfile for Jellysweep
FROM golang:1.25 AS base
# Install Node.js 25 (from .nvmrc)
RUN curl -fsSL https://deb.nodesource.com/setup_25.x | bash - \
&& apt-get install -y nodejs
# Set working directory
WORKDIR /app
# Copy package.json for npm dependencies
COPY package.json ./
# Install npm dependencies
RUN npm install
# Copy go mod files first for better caching
COPY go.mod go.sum ./
# Download Go dependencies
RUN go mod download
# Copy source code
COPY . .
# Build the application
RUN make build
RUN go build -o jellysweep .
# Expose the default port (adjust if needed)
EXPOSE 3002
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD ["./jellysweep", "healthcheck"]
# Run the application
CMD ["./jellysweep", "serve", "--log-level", "debug"]