Changing Strapi port on docker-compose install

You also need to yarn build after any changes to config/server how ever, I have not been able to get the docker image build with the admin pointing to the custom port. Even tho I added ENV PORT=1339 to my Dockerfile. So far what I had to do, is rebuild the admin after the service is running docker compose exec strapi bash and then PORT=1339 yarn build