Compare commits
3 Commits
dist/ubunt
...
987208dd03
Author | SHA1 | Date | |
---|---|---|---|
987208dd03 | |||
03853bdb7a | |||
af0d0ee256 |
@@ -1,11 +1,11 @@
|
|||||||
FROM golang:1.15 AS build
|
FROM reg.cadoles.com/dh/library/golang:1.17 AS build
|
||||||
|
|
||||||
ARG HTTP_PROXY=
|
ARG HTTP_PROXY=
|
||||||
ARG HTTPS_PROXY=
|
ARG HTTPS_PROXY=
|
||||||
ARG http_proxy=
|
ARG http_proxy=
|
||||||
ARG https_proxy=
|
ARG https_proxy=
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y build-essential git bash curl
|
RUN apt-get update && apt-get install -y build-essential git bash curl python2
|
||||||
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
||||||
&& apt-get install -y nodejs
|
&& apt-get install -y nodejs
|
||||||
@@ -23,12 +23,15 @@ RUN npm install \
|
|||||||
&& echo "---" > ./misc/release/config-patch.yml \
|
&& echo "---" > ./misc/release/config-patch.yml \
|
||||||
&& make ARCH_TARGETS=amd64 release
|
&& make ARCH_TARGETS=amd64 release
|
||||||
|
|
||||||
|
|
||||||
FROM busybox
|
FROM busybox
|
||||||
|
|
||||||
COPY --from=build /src/release/fake-sms-linux-amd64 /app
|
RUN adduser -D -h /app sms
|
||||||
|
|
||||||
|
COPY --from=build /src/release/fake-sms-linux-amd64 /app
|
||||||
|
RUN chown -R sms:sms /app
|
||||||
|
|
||||||
|
USER sms
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN mkdir -p /app
|
|
||||||
|
|
||||||
CMD ["bin/fake-sms", "--config", "config.yml"]
|
CMD ["bin/fake-sms", "--config", "config.yml"]
|
Reference in New Issue
Block a user