Skip to content

Commit

Permalink
fixed dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed May 13, 2024
1 parent 431bb98 commit 2f5c288
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/walletextension/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Use an official Node.js 22 as a parent image
FROM node:22-alpine

WORKDIR /usr/src/app

RUN mkdir -p /home/tengateway/frontend
COPY ./tools/walletextension/frontend /home/tengateway/frontend

WORKDIR /home/tengateway/frontend

# ARG for build-time variable (GATEWAY_API_URL)
ARG GATEWAY_API_URL
Expand All @@ -10,11 +14,8 @@ ARG GATEWAY_API_URL
ENV NEXT_PUBLIC_API_GATEWAY_URL=${GATEWAY_API_URL}
ENV PORT=80

# Copy package.json and package-lock.json (or yarn.lock) into the container
COPY package*.json ./

RUN npm install
COPY . .
RUN npm run build
EXPOSE 80
CMD ["npm", "start"]

0 comments on commit 2f5c288

Please sign in to comment.