diff --git a/CHANGELOG.md b/CHANGELOG.md index 582061d..5184185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.47](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.46...v0.0.1-alpha.47) (2024-10-01) + ### [0.0.1-alpha.46](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.45...v0.0.1-alpha.46) (2024-10-01) ### [0.0.1-alpha.45](https://github.com/DIG-Network/dig-incentive-server/compare/v0.0.1-alpha.44...v0.0.1-alpha.45) (2024-10-01) diff --git a/Dockerfile b/Dockerfile index 3f8c9e4..c357200 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,20 +3,28 @@ # Use an official Ubuntu base image with platform support FROM --platform=$TARGETPLATFORM ubuntu:20.04 +# Set environment variables for non-interactive installs +ENV DEBIAN_FRONTEND=noninteractive + # Set the working directory inside the container WORKDIR /app -# Install curl, build-essential, and other dependencies +# Set build arguments for architecture +ARG TARGETARCH + +# Preconfigure tzdata to prevent interactive prompt +RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ + echo "Etc/UTC" > /etc/timezone + +# Install curl, build-essential, and other dependencies, including tzdata RUN apt-get update && apt-get install -y \ curl \ build-essential \ libsecret-1-dev \ pkg-config \ + tzdata \ && rm -rf /var/lib/apt/lists/* -# Set build arguments for architecture -ARG TARGETARCH - # Install Node.js 20 RUN NODE_VERSION=20.8.0 \ && if [ "$TARGETARCH" = "arm64" ]; then \ @@ -46,14 +54,14 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \ echo "Unsupported architecture: $TARGETARCH"; exit 1; \ fi +# Build the application RUN npm run build # Rebuild any native modules for the current environment RUN npm rebuild - # Expose the port the app runs on -EXPOSE 4159 +EXPOSE 4160 # Run the application CMD ["node", "dist/cluster.js"] diff --git a/package-lock.json b/package-lock.json index f137a48..8535ab6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "license": "ISC", "dependencies": { "@dignetwork/dig-sdk": "^0.0.1-alpha.104", diff --git a/package.json b/package.json index d8ab917..7cfaf9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-incentive-server", - "version": "0.0.1-alpha.46", + "version": "0.0.1-alpha.47", "description": "", "type": "commonjs", "main": "./dist/index.js",