-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive error message Invalid containerPort: ...
#167
Comments
Thank you very much for your bug report, @31z4. I have opened rcjsuen/dockerfile-language-server#192 to track this problem in the language server. |
This can be closed since #173 has been merged. |
With the last version 0.0.23, it's not resolved. [dockerfile-lsp] Invalid containerPort: FROM scratch
ARG GRPC_PORT
EXPOSE $ZOO_PORT |
Hi @chemidy, if you use the Dockerfile that was originally posted, you shouldn't get any errors. In the Dockerfile you have provided, you defined an argument named FROM scratch
ARG GRPC_PORT
EXPOSE $GRPC_PORT |
In any case, I have opened rcjsuen/dockerfile-language-server#199 for the problem that you have found regarding build arguments with no default values. Thank you for the bug report! |
Hi @rcjsuen , yes it was a copy/paste error. Thks for the bug report |
@chemidy Please update to 0.0.24 for a fix to the problem you reported. Thanks again for the bug report! |
Having the following Dockerfile
I get an error message
Invalid containerPort: $ZOO_PORT
which is incorrect, since environment variables are supported by the following list of instructions in theDockerfile
:ADD
COPY
ENV
EXPOSE
FROM
LABEL
STOPSIGNAL
USER
VOLUME
WORKDIR
as well as:
ONBUILD
(when combined with one of the supported instructions above)The text was updated successfully, but these errors were encountered: