File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.12 as certs
1
+ FROM alpine:latest as certs
2
2
RUN apk --update add ca-certificates
3
3
4
- FROM alpine:3.12 AS otelcol
4
+ FROM alpine:latest AS otelcol
5
5
COPY otelcol /
6
6
# Note that this shouldn't be necessary, but in some cases the file seems to be
7
7
# copied with the execute bit lost (see #1317)
8
8
RUN chmod 755 /otelcol
9
9
10
10
FROM scratch
11
+
12
+ ARG USER_UID=10001
13
+ USER ${USER_UID}
14
+
11
15
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
12
16
COPY --from=otelcol /otelcol /
13
17
COPY config.yaml /etc/otel/config.yaml
14
18
ENTRYPOINT ["/otelcol" ]
15
19
CMD ["--config" , "/etc/otel/config.yaml" ]
16
- EXPOSE 55678 55679
20
+ EXPOSE 4317 55678 55679
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM golang:1.14
14
+ FROM golang:1.16
15
15
COPY . /usr/src/app/
16
16
WORKDIR /usr/src/app/
17
17
RUN go env -w GOPROXY=direct
You can’t perform that action at this time.
0 commit comments