Dockerfile: support the PORT variable, expose 5000 by default
This commit is contained in:
parent
5aa9db2685
commit
a50a760f52
2 changed files with 5 additions and 1 deletions
|
@ -8,5 +8,7 @@ ARG NODE_ENV=production
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
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
|
COPY --from=build /app/static /usr/share/nginx/html
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Soapbox Nginx for Docker.
|
# Soapbox Nginx for Docker.
|
||||||
server {
|
server {
|
||||||
|
listen ${PORT};
|
||||||
|
|
||||||
keepalive_timeout 70;
|
keepalive_timeout 70;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
client_max_body_size 80m;
|
client_max_body_size 80m;
|
||||||
|
|
Loading…
Reference in a new issue