Skip to content

Commit

Permalink
Fix dockerfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
thmull committed Aug 22, 2023
1 parent dd518c1 commit 8f4910e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
8 changes: 2 additions & 6 deletions docker/Hyper.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ ENV VERSION=$VERSION
RUN echo $VERSION
WORKDIR /app
COPY . .
RUN make
RUN make install

FROM alpine:latest

# Create a group and user
RUN addgroup --gid 9999 hyper && adduser --disabled-password --gecos '' --uid 9999 -G hyper -s /bin/ash hyper

WORKDIR /app

COPY --from=builder /go/bin/hyper /app
ENTRYPOINT ["/app/hyper"]
5 changes: 1 addition & 4 deletions docker/Proxy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ RUN make

FROM alpine:latest

# Create a group and user
RUN addgroup --gid 9999 hyper && adduser --disabled-password --gecos '' --uid 9999 -G hyper -s /bin/ash hyper

WORKDIR /app

COPY --from=builder /go/bin/proxy /app
ENTRYPOINT ["/app/proxy"]
6 changes: 1 addition & 5 deletions docker/Sd.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ COPY . .
RUN make

FROM alpine:latest

# Create a group and user
RUN addgroup --gid 9999 hyper && adduser --disabled-password --gecos '' --uid 9999 -G hyper -s /bin/ash hyper

WORKDIR /app

COPY --from=builder /go/bin/sd /app
ENTRYPOINT ["/app/sd"]

0 comments on commit 8f4910e

Please sign in to comment.