This commit is contained in:
skiffer-git 2024-04-23 11:11:15 +08:00
parent 65423e656d
commit 4a36a012ed

View File

@ -2,7 +2,7 @@
FROM golang:1.21 as builder FROM golang:1.21 as builder
# Define the base directory for the application as an environment variable # Define the base directory for the application as an environment variable
ENV SERVER_DIR=/openim-chat ENV SERVER_DIR=/openim-server
# Set the working directory inside the container based on the environment variable # Set the working directory inside the container based on the environment variable
WORKDIR $SERVER_DIR WORKDIR $SERVER_DIR
@ -29,7 +29,7 @@ FROM alpine:latest
# Install necessary packages, such as bash, to ensure compatibility and functionality # Install necessary packages, such as bash, to ensure compatibility and functionality
RUN apk add --no-cache bash RUN apk add --no-cache bash
ENV SERVER_DIR=/openim-chat ENV SERVER_DIR=/openim-server
# Set the working directory inside the container based on the environment variable # Set the working directory inside the container based on the environment variable
WORKDIR $SERVER_DIR WORKDIR $SERVER_DIR