-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing building using alpine container
- Loading branch information
1 parent
bb2ffa0
commit 364c437
Showing
5 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/dist | ||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# FROM golang:alpine AS build | ||
# COPY . /build/ | ||
# WORKDIR /build | ||
# RUN ls -a | ||
# RUN go mod tidy | ||
# RUN go mod download | ||
# RUN go build -o server | ||
# | ||
|
||
|
||
FROM ubuntu:latest | ||
EXPOSE 80 | ||
ENV APP_DIR=/opt/app | ||
COPY ./dist $APP_DIR | ||
# COPY --from=build /build/server $APP_DIR/server | ||
RUN chmod +x $APP_DIR/server/server | ||
# RUN chmod +x $APP_DIR/server/test.sh | ||
|
||
WORKDIR $APP_DIR | ||
|
||
ENV ISS_LOG=info \ | ||
ISS_LOG_COLOR=false \ | ||
ISS_MANUAL_PATH=/opt/iss/manual \ | ||
ISS_LEGACY_PATH=/opt/iss/legacy | ||
|
||
# RUN stat /bin/sh | ||
# RUN stat ./server/test.sh | ||
|
||
# ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD ["./server/server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters