Files
managing-apps/src/Managing.Web3Proxy/Dockerfile-web3proxy
2025-10-31 13:27:38 +07:00

23 lines
456 B
Plaintext

# Use an official Node.js image as the base
FROM node:22.14.0-alpine
# Set the working directory in the container
WORKDIR /app
# COPY package*.json ./
COPY /src/Managing.Web3Proxy/package.json ./
# Declaring env
ENV NODE_ENV production
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts
RUN npm install
COPY src/Managing.Web3Proxy/ .
# Build the app
RUN npm run build
EXPOSE 4111
CMD ["npm", "run", "start"]