Skip to content

Commit 860048f

Browse files
authored
Fix V Dockerfiles (PlummersSoftwareLLC#777)
1 parent b058dcb commit 860048f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

PrimeV/solution_1/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM alpine:3.13 AS build
1+
FROM alpine:3.15 AS build
22

3-
ENV V_VER="weekly.2021.45"
3+
ENV V_VER="weekly.2021.48"
44

5-
RUN apk update && apk add --no-cache build-base=0.5-r2 bash=5.1.0-r0 git=2.30.2-r0
5+
RUN apk update && apk add --no-cache build-base bash git
66

77
WORKDIR /opt/vlang
88
RUN git clone https://github.com/vlang/v /opt/vlang && git checkout "${V_VER}" && make
@@ -14,7 +14,7 @@ COPY *.v .
1414

1515
RUN v -prod primes.v
1616

17-
FROM alpine:3.13
17+
FROM alpine:3.15
1818

1919
COPY --from=build /opt/app/primes /usr/local/bin/primes
2020

PrimeV/solution_2/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM alpine:3.13 AS build
1+
FROM alpine:3.15 AS build
22

3-
ENV V_VER="weekly.2021.45"
3+
ENV V_VER="weekly.2021.48"
44

5-
RUN apk update && apk add --no-cache build-base bash=5.1.0-r0 git
5+
RUN apk update && apk add --no-cache build-base bash git
66

77
WORKDIR /opt/vlang
88
RUN git clone https://github.com/vlang/v /opt/vlang && git checkout "${V_VER}" && make
@@ -14,7 +14,7 @@ COPY *.v .
1414

1515
RUN v -prod primes.v
1616

17-
FROM alpine:3.13
17+
FROM alpine:3.15
1818

1919
COPY --from=build /opt/app/primes /usr/local/bin/primes
2020

0 commit comments

Comments
 (0)