Skip to content

Commit

Permalink
fix: update Dockerfile to create SQLite database directory and adjust…
Browse files Browse the repository at this point in the history
… binary permissions
  • Loading branch information
ndonathan committed Dec 21, 2024
1 parent bb791e2 commit 95ab65f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ RUN apk add --no-cache libc6-compat

WORKDIR /app

# Create directory for SQLite database
RUN mkdir -p /app/data

# Copy the binary from the builder stage to the correct location
COPY --from=builder /build/server-info-api /app/
COPY --from=builder /build/data.csv /app/
COPY --from=builder /build/data.csv /app/data

# Create directory for SQLite database
RUN mkdir -p /app/data
# ensure executable is ...well .. executable.
RUN chmod +x /app/server-info-api

# Expose the application port
EXPOSE 8080
Expand Down

0 comments on commit 95ab65f

Please sign in to comment.