Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v0.0.1 alpha.47 #42

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading