Skip to content

Commit

Permalink
fix: docker sdk sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Oct 17, 2024
1 parent 430b380 commit 134bf13
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
32 changes: 14 additions & 18 deletions ecosystem-sdk/sdk-sample/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
# Use an official Node runtime as the base image
FROM node:20.11-slim
FROM node:20.18-slim

RUN apt-get update -y && apt-get install -y openssl \
python3 \
make \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory in the container
WORKDIR /app

# Copy package.json and yarn.lock files
COPY package.json yarn.lock ./
COPY . .

# Install dependencies
# Install production dependencies.
RUN yarn install

# Copy the rest of the application code
COPY . .

# Build the application
# Install production dependencies.
RUN yarn build

# Install a simple http server for serving static content
RUN yarn global add serve

# The application's default port
EXPOSE 3000

# Command to run the application
CMD ["serve", "-s", "build", "-l", "3000"]
# Start the api server
CMD [ "yarn", "start" ]
EXPOSE 3000
2 changes: 1 addition & 1 deletion ecosystem-sdk/sdk-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/wallets-connect-with-nextjs",
"version": "0.0.4",
"version": "0.0.5",
"dependencies": {
"@rapidfire/id": "^0.0.3",
"@tanstack/react-query": "^5.51.11",
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-sdk/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rapidfire/id",
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-wallet/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecosystem-backend",
"version": "0.0.4",
"version": "0.0.5",
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-wallet/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecosystem-frontend",
"version": "0.0.4",
"version": "0.0.5",
"private": true,
"dependencies": {
"@openfort/ecosystem-js": "latest",
Expand Down

0 comments on commit 134bf13

Please sign in to comment.