Skip to content

Commit

Permalink
fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
uu-z committed Jun 14, 2023
1 parent 4f4a6ac commit 76d7f07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#build studio
FROM node:18-slim AS build-nodejs
FROM node:18 AS build-nodejs

WORKDIR /w3bstream-studio


RUN npm i pnpm -g
COPY package.json pnpm-lock.yaml ./
COPY prisma ./prisma
Expand All @@ -12,7 +13,7 @@ RUN pnpm build:standalone


#run
FROM node:18-slim
FROM node:18

EXPOSE 3000

Expand Down
8 changes: 4 additions & 4 deletions docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ services:
- '3000:3000'
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-w3badmin}:${POSTGRES_PASSWORD:-PaSsW0Rd}@postgres:5432/${POSTGRES_DB:-w3bstream}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://w3bapp:8888}
NEXT_PUBLIC_EVENT_URL: ${NEXT_PUBLIC_EVENT_URL:-http://w3bapp:8889}
NEXT_PUBLIC_MQTT_URL: ${NEXT_PUBLIC_MQTT_URL:-mqtt://mqtt_server:1883}
NEXT_PUBLIC_METRICS_URL: ${NEXT_PUBLIC_METRICS_URL:-http://prometheus:9090}
NEXT_PUBLIC_API_URL: http://w3bapp:8888
NEXT_PUBLIC_EVENT_URL: http://w3bapp:8889
NEXT_PUBLIC_MQTT_URL: mqtt://mqtt_server:1883
NEXT_PUBLIC_METRICS_URL: http://prometheus:9090
ADMIN_KEY: ${ADMIN_KEY:-iotex.W3B.admin}
JWT_SIGN_KEY: ${JWT_SIGN_KEY:-xxxx}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "w3bstream-devnet",
"version": "1.2.5-rc2",
"version": "1.2.5-rc3",
"license": "MIT",
"description": "Starter pack using Nextjs, React, Typescript, tRPC, Mantine and Cypress",
"keywords": [
Expand Down

0 comments on commit 76d7f07

Please sign in to comment.