Open ShalokShalom opened 5 years ago
Hi! All that's really important to have VSCode running is the coder binary (so lines 11 and 12). It looks like FSharp already has a base Docker image you can work with, so maybe change the Dockerfile to:
FROM fsharp:latest
# download the coder binary, untar it, and allow it to be executed
RUN wget https://github.com/codercom/code-server/releases/download/1.408-vsc1.32.0/code-server1.408-vsc1.32.0-linux-x64.tar.gz \
&& tar -xzvf code-server1.408-vsc1.32.0-linux-x64.tar.gz && chmod +x code-server1.408-vsc1.32.0-linux-x64/code-server
COPY docker-entrypoint.sh /usr/local/bin/
ADD ./code /code
ENTRYPOINT ["docker-entrypoint.sh"]
and change the docker-entrypoint.sh to
#!/bin/bash
set -e
if [ $# -eq 0 ]
then
code-server1.408-vsc1.32.0-linux-x64/code-server --allow-http --no-auth --data-dir /data /code
else
exec "$@"
fi
I haven't tried the above out yet, but I think that's how you'd get started to get something similar going for fsharp. Let me know if that's enough to get you going!
Oh thanks a lot ^-^
Is it ok that I leave this open, until I get the chance to give it a try and ask you further otherwise?
Thanks a ton :hugs:
That's perfectly fine - let me know how it goes 👍
Hi there :wink:
I am an enthusiastic fsharp user and hope I can turn this project of yours into a version for our language.
How is your advice? :hugs: