mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-19 03:10:29 +05:00
chore(docker): return to alpine, add dockerignore
Alpine builds are working again. Apparently, we removed the dependency on the non-working library.
This commit is contained in:
parent
c8f8a7feb4
commit
4104b04f17
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*~
|
||||
*.db
|
||||
*.bak
|
||||
*.sqlite3
|
||||
**/.DS_Store
|
|
@ -1,6 +1,6 @@
|
|||
FROM golang:1.22 AS builder
|
||||
FROM golang:1.22-alpine AS builder
|
||||
|
||||
RUN apt install -y --no-install-recommends gcc
|
||||
RUN apk add --no-cache gcc libc-dev
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -11,7 +11,7 @@ ADD . .
|
|||
|
||||
RUN go build -o main
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
FROM alpine:3.19
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/main /usr/local/bin/phoenix
|
||||
|
@ -20,7 +20,6 @@ COPY templates ./templates
|
|||
|
||||
RUN mkdir /var/lib/phoenix
|
||||
ENV P_DBPATH="/var/lib/phoenix/db.sqlite3"
|
||||
ENV P_PRODUCTION="true"
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
Loading…
Reference in a new issue