File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ COPY web /tmp/web
33WORKDIR /tmp/web
44ARG APP_VERSION="1.0.0"
55ARG GITHUB_URL="https://github.com/x1unix/go-playground"
6- RUN REACT_APP_VERSION=${APP_VERSION} REACT_APP_GITHUB_URL=${GITHUB_URL} yarn install --silent && yarn build
6+ RUN yarn install --silent && REACT_APP_VERSION=$APP_VERSION REACT_APP_GITHUB_URL=$GITHUB_URL yarn build
77
88FROM golang:1.13-alpine as build
99WORKDIR /tmp/playground
@@ -17,8 +17,9 @@ FROM golang:1.13-alpine as production
1717WORKDIR /opt/playground
1818ENV GOROOT /usr/local/go
1919ENV APP_CLEAN_INTERVAL=10m
20+ ENV APP_DEBUG=false
2021COPY data ./data
2122COPY --from=ui-build /tmp/web/build ./public
2223COPY --from=build /tmp/playground/server .
2324EXPOSE 8000
24- ENTRYPOINT /opt/playground/server -f=/opt/playground/data/packages.json -addr=:8000 -clean-interval=${APP_CLEAN_INTERVAL}
25+ ENTRYPOINT /opt/playground/server -f=/opt/playground/data/packages.json -addr=:8000 -clean-interval=${APP_CLEAN_INTERVAL} -debug=${APP_DEBUG}
You can’t perform that action at this time.
0 commit comments