Skip to content

Commit

Permalink
reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
pchachicho committed Oct 29, 2024
1 parent 10569eb commit 16eee14
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# Use the official Golang image to build the binary
FROM golang:1.23 AS build
ENV CGO_ENABLED=0
ARG BINARY_NAME

# Set the working directory
WORKDIR /app

# Copy the Go source files, Makefile, etc.
COPY . .

# Build the Go application
# RUN go build -o ${BINARY_NAME}
RUN make build
# RUN go build -o assistant
RUN go build -o assistant

# Using a multi-stage build
FROM alpine:3.18
Expand All @@ -20,8 +18,8 @@ FROM alpine:3.18
RUN addgroup -g 1000 -S assistant && \
adduser -u 1000 -G assistant -S assistant

# COPY --from=build --chown=assistant:assistant /app/assistant /app/
COPY --from=build --chown=assistant:assistant /app/${BINARY_NAME} /app/
COPY --from=build --chown=assistant:assistant /app/assistant /app/

# Expose port 8080
EXPOSE 8080

Expand Down

0 comments on commit 16eee14

Please sign in to comment.