Browse Source

Initial add

master
root 1 year ago
committed by bkraul
commit
c4c78ccbcb
5 changed files with 40 additions and 0 deletions
  1. +7
    -0
      latest/build
  2. +4
    -0
      latest/push
  3. +13
    -0
      release/Dockerfile
  4. +12
    -0
      release/build
  5. +4
    -0
      release/push

+ 7
- 0
latest/build View File

@ -0,0 +1,7 @@
#!/bin/bash
cd ./BaGet
docker build $1\
-t bkraul/baget:latest \
.
cd ..

+ 4
- 0
latest/push View File

@ -0,0 +1,4 @@
#!/bin/sh
docker push bkraul/baget:latest

+ 13
- 0
release/Dockerfile View File

@ -0,0 +1,13 @@
FROM microsoft/dotnet:2.2-aspnetcore-runtime
MAINTAINER Belman Kraul-Garcia <bkraul@belmankraul.com>
ENV ASPNETCORE_URLS="http://*:80"
EXPOSE 80
RUN apt-get update; apt-get install -y unzip; apt-get install wget -y \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN wget -O BaGet.zip https://github.com/loic-sharma/BaGet/releases/download/v0.1.77-prerelease/BaGet.zip \
&& unzip BaGet.zip -d /app && rm -rf BaGet.zip
WORKDIR /app
ENTRYPOINT ["dotnet", "BaGet.dll"]

+ 12
- 0
release/build View File

@ -0,0 +1,12 @@
#!/bin/bash
VERSION="0.1.77-prerelease"
if [ ! -z "$1" ]
then
VERSION=$1
fi
echo $VERSION
docker build \
-t bkraul/baget:$VERSION \
.

+ 4
- 0
release/push View File

@ -0,0 +1,4 @@
#!/bin/sh
docker push bkraul/baget:0.1.77-prerelease

Loading…
Cancel
Save