Fixed docker
This commit is contained in:
+5
-2
@@ -11,7 +11,8 @@ RUN mkdir -p -m 0700 ~/.ssh && \
|
|||||||
ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
|
ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# Configure Git to use SSH for GitHub
|
# Configure Git to use SSH for GitHub
|
||||||
RUN git config --global url."ssh://git@git.kundeng.us".insteadOf "https://git.kundeng.us"
|
RUN git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/" && \
|
||||||
|
git config --global url."git@git.kundeng.us:".insteadOf "http://git.kundeng.us/"
|
||||||
|
|
||||||
# Set up the Go environment for private modules
|
# Set up the Go environment for private modules
|
||||||
ENV GOPRIVATE=git.kundeng.us
|
ENV GOPRIVATE=git.kundeng.us
|
||||||
@@ -20,7 +21,9 @@ ENV GOPRIVATE=git.kundeng.us
|
|||||||
# Copy go mod and sum files
|
# Copy go mod and sum files
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
RUN --mount=type=ssh mkdir src && \
|
# RUN --mount=type=ssh mkdir src && \
|
||||||
|
# go mod download
|
||||||
|
RUN --mount=type=ssh \
|
||||||
go mod download
|
go mod download
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
|
|||||||
+2
-2
@@ -62,7 +62,7 @@ services:
|
|||||||
POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_db}
|
POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_db}
|
||||||
volumes:
|
volumes:
|
||||||
# Persist database data using a named volume
|
# Persist database data using a named volume
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -86,7 +86,7 @@ services:
|
|||||||
POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_auth_db}
|
POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_auth_db}
|
||||||
volumes:
|
volumes:
|
||||||
# Persist database data using a named volume
|
# Persist database data using a named volume
|
||||||
- postgres_data_auth:/var/lib/postgresql/data
|
- postgres_data_auth:/var/lib/postgresql
|
||||||
ports:
|
ports:
|
||||||
- "5433:5432"
|
- "5433:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user