Dockerfile: support the PORT variable, expose 5000 by default

environments/review-dockerfile-lm8zl8/deployments/888
Alex Gleason 2022-09-01 18:10:41 -05:00
rodzic 5aa9db2685
commit a50a760f52
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -8,5 +8,7 @@ ARG NODE_ENV=production
RUN yarn build
FROM nginx:stable-alpine
COPY installation/docker.conf /etc/nginx/conf.d/default.conf
EXPOSE 5000
ENV PORT=5000
COPY installation/docker.conf /etc/nginx/templates/default.conf.template
COPY --from=build /app/static /usr/share/nginx/html

Wyświetl plik

@ -1,5 +1,7 @@
# Soapbox Nginx for Docker.
server {
listen ${PORT};
keepalive_timeout 70;
sendfile on;
client_max_body_size 80m;