Skip to content

Commit fd094a0

Browse files
committed
Add sqlite3 to runtime Docker image
1 parent 698eb37 commit fd094a0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ SMTP_HOST="localhost"
99
SMTP_PORT=1025
1010
SMTP_USERNAME=""
1111
SMTP_PASSWORD=""
12-
EMAIL_FROM="Simply Shared Notes <no-reply@local.test>"
12+
EMAIL_FROM="Simply Shared Notes <noreply@local.test>"

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ WORKDIR /app
1919

2020
RUN apk add curl
2121
RUN mkdir -p bin && \
22-
curl -fsSL -o bin/dbmate https://github.com/amacneil/dbmate/releases/download/v2.26.0/dbmate-linux-amd64 && \
23-
chmod +x bin/dbmate
22+
curl -fsSL -o bin/dbmate https://github.com/amacneil/dbmate/releases/download/v2.26.0/dbmate-linux-amd64 && \
23+
chmod +x bin/dbmate
2424

2525
COPY go.mod go.sum ./
2626
RUN go mod download
@@ -30,17 +30,17 @@ COPY --from=frontend-builder /app/dist ./dist
3030
COPY sql/pragmas.sql ./sql/
3131
# Go source files
3232
COPY app ./app/
33-
COPY main.go ./
33+
COPY main.go ./
3434
RUN CGO_ENABLED=0 GOOS=linux go build -o bin/app .
3535

3636
# Stage 3: Runtime image
3737
FROM alpine:latest
3838

39+
RUN apk add --no-cache sqlite
40+
3941
COPY --from=backend-builder /app/bin/dbmate /dbmate
4042
COPY sql/migrations /migrations
41-
4243
COPY --from=backend-builder /app/bin/app /app
43-
4444
COPY deploy/run.sh /run.sh
4545

4646
EXPOSE 3000

app/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Config struct {
1919
SMTPPort int `env:"SMTP_PORT" envDefault:"1025"`
2020
SMTPUsername string `env:"SMTP_USERNAME"`
2121
SMTPPassword string `env:"SMTP_PASSWORD"`
22-
EmailFrom string `env:"EMAIL_FROM" envDefault:"Simply Shared Notes <no-reply@local.test>"`
22+
EmailFrom string `env:"EMAIL_FROM" envDefault:"Simply Shared Notes <noreply@local.test>"`
2323
}
2424

2525
func New() (*Config, error) {

0 commit comments

Comments
 (0)