mirror of
https://github.com/philipredstone/relnet.git
synced 2025-06-17 05:01:24 +02:00
Fix Dockerfile
This commit is contained in:
parent
24bedb1198
commit
a0843a46b2
@ -33,14 +33,14 @@ RUN yarn run build
|
|||||||
|
|
||||||
|
|
||||||
# Final stage
|
# Final stage
|
||||||
FROM node:22
|
FROM node:22-slim
|
||||||
COPY --from=frontend-builder /frontend/dist/ /app/frontend/dist
|
COPY --from=frontend-builder /frontend/dist/ frontend/dist
|
||||||
COPY --from=backend-builder /app/dist /app/dist
|
COPY --from=backend-builder /app/dist/ dist/
|
||||||
|
COPY --from=backend-builder /app/node_modules node_modules
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
|
||||||
ENV PORT=80
|
ENV PORT=80
|
||||||
ENV MONGODB_URI=mongodb://db:27017/friendship-network
|
ENV MONGODB_URI=mongodb://db:27017/friendship-network
|
||||||
ENV JWT_SECRET=7hPqh6pS91WCQY
|
|
||||||
ENV APP_URL=http://localhost:80
|
ENV APP_URL=http://localhost:80
|
||||||
ENV ENABLE_REGISTRATION=true
|
ENV ENABLE_REGISTRATION=true
|
||||||
|
|
||||||
|
@ -4,6 +4,9 @@ networks:
|
|||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
relnet:
|
relnet:
|
||||||
image: ghcr.io/philipredstone/relnet:latest
|
image: ghcr.io/philipredstone/relnet:latest
|
||||||
|
@ -2,6 +2,9 @@ networks:
|
|||||||
internal:
|
internal:
|
||||||
internal: true
|
internal: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
relnet:
|
relnet:
|
||||||
image: ghcr.io/philipredstone/relnet:latest
|
image: ghcr.io/philipredstone/relnet:latest
|
||||||
|
@ -5,7 +5,7 @@ import { NetworkProvider } from './context/NetworkContext';
|
|||||||
import Login from './components/auth/Login';
|
import Login from './components/auth/Login';
|
||||||
import Register from './components/auth/Register';
|
import Register from './components/auth/Register';
|
||||||
import NetworkList from './components/networks/NetworkList';
|
import NetworkList from './components/networks/NetworkList';
|
||||||
import FriendshipNetwork from './components/FriendshipNetwork'; // Your existing component
|
import FriendshipNetwork from './components/FriendshipNetwork';
|
||||||
import Header from './components/layout/Header';
|
import Header from './components/layout/Header';
|
||||||
|
|
||||||
// Protected route component
|
// Protected route component
|
||||||
|
Loading…
x
Reference in New Issue
Block a user