build: docker compose add frontend new image

This commit is contained in:
leandrofars 2024-03-31 16:21:38 -03:00
parent 462b7be85d
commit 3b0520d98a
4 changed files with 5 additions and 9 deletions

View File

View File

@ -156,13 +156,10 @@ services:
#/* -------------------------------- Frontend -------------------------------- */ #/* -------------------------------- Frontend -------------------------------- */
frontend: frontend:
image: 'node:16.20.2' image: 'oktopusp/frontend'
container_name: frontend container_name: frontend
tty: true env_file:
stdin_open: true - .env.frontend
volumes:
- ../../frontend:/app/
command: bash -c "cd /app/ && npm i && npm run dev"
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:

View File

@ -6,8 +6,8 @@ NEXT_PUBLIC_WS_ENPOINT="http://localhost:5000/"
# -------------------------- Production Environment -------------------------- # # -------------------------- Production Environment -------------------------- #
#NEXT_PUBLIC_REST_ENPOINT="https://oktopustr369.com/api" #NEXT_PUBLIC_REST_ENPOINT="https://demo.oktopus.app.br/api"
#NEXT_PUBLIC_WS_ENPOINT="https://oktopustr369.com/" #NEXT_PUBLIC_WS_ENPOINT="https://demo.oktopus.app.br/"
# ---------------------------------------------------------------------------- # # ---------------------------------------------------------------------------- #
# ---------------------------- Mocked Environment ---------------------------- # # ---------------------------- Mocked Environment ---------------------------- #

1
frontend/.gitignore vendored
View File

@ -9,7 +9,6 @@
/coverage /coverage
# production # production
/build
out out
.next .next