Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update version of nuget and fix https issue #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
FROM alpine:3.3
FROM alpine:3.4

RUN echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" | tee -a /etc/apk/repositories
RUN echo "http://dl-5.alpinelinux.org/alpine/edge/main/" | tee -a /etc/apk/repositories
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why edge repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edge/main was needed for python2 in the alpine:3.4 image, I believe. And edge/testing is for mono.


RUN apk update && \
apk add \
ca-certificates \
nodejs \
mono@testing && \
rm -rf \
/var/cache/apk/*
apk --no-cache add wget ca-certificates nodejs mono@testing && \
cert-sync /etc/ssl/certs/ca-certificates.crt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK you don't need this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was needed to install nuget from an https endpoint.


RUN mkdir -p /usr/lib/nuget && \
wget \
https://dist.nuget.org/win-x86-commandline/v2.8.6/nuget.exe \
https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe \
-O /usr/lib/nuget/NuGet.exe

WORKDIR /node
ADD package.json /node/
ADD index.js /node/
RUN npm install --production

ENTRYPOINT ["node", "index.js"]
ENTRYPOINT ["node", "index.js"]