Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Shafiee committed Aug 8, 2024
1 parent 1b5c312 commit dd0af45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ WORKDIR /app
COPY --from=builder /app/webBridgeBot /app/webBridgeBot

# Copy the run script
COPY run.sh /app/run.sh
COPY templates /app/templates

# Set the permissions for the binary and the run script
RUN chmod +x /app/webBridgeBot
RUN chmod +x /app/run.sh

# Expose the application's port
EXPOSE 8080

# Run the webBridgeBot binary
CMD ["/app/run.sh"]
CMD ["/app/webBridgeBot"]
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Makefile for cloning, building TDLib, building OpenSSL, and building a Go application (webBridgeBot) that uses TDLib

# Define variables
TDLIB_DIR=$(CURDIR)/tdlib
DOCKER_IMAGE_NAME=webbridgebot
DOCKER_TAG=latest
DOCKER_USERNAME=mshafiee
Expand Down
11 changes: 1 addition & 10 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,4 @@ MAX_CACHE_SIZE=${MAX_CACHE_SIZE:-10737418240} # 10 GB in bytes
DEBUG_MODE=${DEBUG_MODE:-false}

# Execute the Go application with command-line flags
./webBridgeBot \
-apiID="$API_ID" \
-apiHash="$API_HASH" \
-botToken="$BOT_TOKEN" \
-baseURL="$BASE_URL" \
-port="$PORT" \
-hashLength="$HASH_LENGTH" \
-cacheDirectory="$CACHE_DIRECTORY" \
-maxCacheSize="$MAX_CACHE_SIZE" \
-debugMode="$DEBUG_MODE"
./webBridgeBot

0 comments on commit dd0af45

Please sign in to comment.