mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
* Adding Devcontainer support * Update .devcontainer/devcontainer.json Awesome. I had to manually install the extension. Adding this would be perfect Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * Update docker-compose.yml Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
17 lines
776 B
Docker
17 lines
776 B
Docker
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/go/.devcontainer/base.Dockerfile
|
|
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.16, 1.17, 1-bullseye, 1.16-bullseye, 1.17-bullseye, 1-buster, 1.16-buster, 1.17-buster
|
|
ARG VARIANT=1-bullseye
|
|
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
|
|
|
|
# [Choice] Node.js version: lts/*, 16, 14, 12, 10
|
|
ARG NODE_VERSION="lts/*"
|
|
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c ". /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
|
|
|
# RUN mv -vn config_example.json config.json
|
|
WORKDIR /workspace
|
|
|
|
# RUN cp . /workspace/
|
|
# RUN CWD
|
|
# RUN GO111MODULE=on go mod vendor
|
|
# RUN go build .
|
|
# RUN go build ./cmd/gctcli |