-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM golang:1.21.5-bullseye
# To connect a repository when publishing an image from the command line, and to ensure your GITHUB_TOKEN has appropriate permissions when using a GitHub Actions workflow, we recommend adding the label org.opencontainers.image.source to your Dockerfile.
LABEL org.opencontainers.image.source=https://github.com/dclappert/protoc-gen-salesforce-apex-runner-container
LABEL org.opencontainers.image.description="A dedicated Docker container setup that publishes images for the development and CI/CD of 'protoc-gen-salesforce-apex' project, ensuring consistent environments across all stages of development."
LABEL org.opencontainers.image.licenses=BSD-3-Clause
# Install Unzip
RUN apt-get update \
&& apt-get install -y unzip
# Install Protoc
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip -o protoc.zip \
&& unzip protoc.zip -d /usr/local \
&& rm protoc.zip
# Install Go Tools
RUN go install -v golang.org/x/tools/gopls@latest
# Install Node.js (required for Salesforce CLI)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
# Install Salesforce CLI
RUN npm install -g sfdx-cli
# Install Yarn
RUN npm install -g yarn