Merge pull request #598 from nopdotcom/docker-expose-port

Dockerfile: Move EXPOSE outside the builder stage
This commit is contained in:
Zed 2022-05-10 14:10:53 +02:00 committed by GitHub
commit 3526318482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
FROM nimlang/nim:1.6.2-alpine-regular as nim FROM nimlang/nim:1.6.2-alpine-regular as nim
LABEL maintainer="setenforce@protonmail.com" LABEL maintainer="setenforce@protonmail.com"
EXPOSE 8080
RUN apk --no-cache add libsass-dev pcre RUN apk --no-cache add libsass-dev pcre
@ -20,4 +19,5 @@ RUN apk --no-cache add pcre ca-certificates
COPY --from=nim /src/nitter/nitter ./ COPY --from=nim /src/nitter/nitter ./
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
COPY --from=nim /src/nitter/public ./public COPY --from=nim /src/nitter/public ./public
EXPOSE 8080
CMD ./nitter CMD ./nitter