2023-04-10 22:52:52 +02:00
|
|
|
FROM alpine:3.17 AS build
|
2023-04-04 15:17:55 +02:00
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add --no-cache \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
musl-dev \
|
|
|
|
libstdc++
|
|
|
|
|
|
|
|
COPY --from=golang:1.19-alpine /usr/local/go/ /usr/local/go/
|
|
|
|
ENV PATH="/usr/local/go/bin:${PATH}"
|
|
|
|
|
2023-04-07 10:32:03 +02:00
|
|
|
COPY --from=node:18-alpine /usr/local/ /usr/local/
|
2023-04-04 15:17:55 +02:00
|
|
|
ENV NODE_PATH="/usr/local/lib/node_modules"
|
|
|
|
ENV PATH="/usr/local/bin:${PATH}"
|
|
|
|
|
|
|
|
WORKDIR /opengist
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN make
|
|
|
|
|
|
|
|
|
2023-04-10 22:52:52 +02:00
|
|
|
FROM alpine:3.17
|
2023-04-04 15:17:55 +02:00
|
|
|
|
2023-04-10 22:52:52 +02:00
|
|
|
RUN apk update && \
|
|
|
|
apk add --no-cache \
|
|
|
|
openssl \
|
|
|
|
openssh \
|
|
|
|
curl \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
gnupg \
|
|
|
|
xz \
|
|
|
|
gcc \
|
|
|
|
musl-dev \
|
|
|
|
libstdc++
|
|
|
|
|
|
|
|
WORKDIR /opengist
|
|
|
|
|
|
|
|
COPY --from=build /opengist/opengist .
|
|
|
|
|
|
|
|
EXPOSE 6157 2222
|
|
|
|
VOLUME /root/.opengist
|
2023-04-04 15:17:55 +02:00
|
|
|
CMD ["./opengist"]
|