-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(binner): Define Dockerfile for Binner.io
- Loading branch information
1 parent
f226b53
commit f0d7648
Showing
2 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | ||
WORKDIR /app | ||
|
||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends wget ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ARG ARCH=x64 | ||
ARG RELEASE_TAG=2.6.3 | ||
ARG ARTIFACT_NAME=Binner_linux-${ARCH}-${RELEASE_TAG}.tar.gz | ||
|
||
RUN wget https://github.com/replaysMike/Binner/releases/download/v${RELEASE_TAG}/${ARTIFACT_NAME} -O /app/${ARTIFACT_NAME} && \ | ||
tar -xzf /app/${ARTIFACT_NAME} -C /app && \ | ||
rm /app/${ARTIFACT_NAME} && \ | ||
chown -R 1000:1000 /app && \ | ||
chmod +x /app/Binner.Web | ||
|
||
USER app | ||
EXPOSE 8090 | ||
ENTRYPOINT ["/app/Binner.Web"] | ||
|
||
LABEL org.opencontainers.image.authors="Vladimir Romashchenko <[email protected]>" | ||
LABEL org.opencontainers.image.source="https://github.com/eaglesemanation/ops.emnt.dev" | ||
LABEL org.opencontainers.image.licenses="GPL-3.0" |
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