Skip to content

Commit

Permalink
Merge pull request #42 from DIG-Network/release/v0.0.1-alpha.47
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.47
  • Loading branch information
MichaelTaylor3D authored Oct 1, 2024
2 parents fb59b4e + fd8cd0b commit 820bc9a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 14 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 820bc9a

Please sign in to comment.