Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fix(ci): Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Jun 29, 2023
1 parent 72792aa commit c71f58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN --mount=type=secret,id=netrcConf,required=true,target=/root/.netrc go mod do
COPY . .

# Build the application
RUN --mount=type=secret,id=netrcConf,required=true,target=/root/.netrc go build -o server ./src/.
RUN --mount=type=secret,id=netrcConf,required=true,target=/root/.netrc CGO_ENABLED=0 go build -o server ./src/.

# Create master image
FROM alpine AS master
Expand All @@ -31,8 +31,8 @@ COPY --from=base /app/server ./
# Set ENV to production
ENV GO_ENV production

# Expose port 3001
EXPOSE 3001
# Expose port 3000
EXPOSE 3000

# Run the application
CMD ["./server"]

0 comments on commit c71f58a

Please sign in to comment.