Skip to content

Commit 594de44

Browse files
authored
Fix wrangler docker again (#231)
At some point this pattern got changed and I noticed "invalid arguments" error from Wrangler on starting the container. Swithcing this to entrypoint and only passing in arguments from the docker compose configuration to avoid this all.
1 parent f1c5618 commit 594de44

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dockerfiles/docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ services:
4242
readthedocs:
4343
working_dir: /usr/src/app/packages/addons-inject/
4444
command: [
45-
"node_modules/.bin/wrangler",
46-
"dev",
4745
"--log-level=info",
4846
"--host=nginx:8080", # El Proxito on NGINX configuration
4947
"--ip=0.0.0.0",

packages/addons-inject/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ COPY index.js /usr/src/app/packages/addons-inject/
44
COPY wrangler.toml /usr/src/app/packages/addons-inject/
55
WORKDIR /usr/src/app/packages/addons-inject/
66
RUN npm install --omit dev
7-
CMD ["node_modules/.bin/wrangler", "dev"]
7+
ENTRYPOINT ["node_modules/.bin/wrangler", "dev"]

0 commit comments

Comments
 (0)