22 lines
508 B
Docker
22 lines
508 B
Docker
FROM node:19-alpine
|
|
|
|
LABEL maintainer="Antoine Langlois <antoine.l@antoine-langlois>"
|
|
LABEL org.opencontainers.image.source="https://gitea.antoine-langlois.net/DataHearth/cors-anywhere-docker"
|
|
LABEL repository="https://gitea.antoine-langlois.net/DataHearth/cors-anywhere-docker"
|
|
|
|
RUN apk update
|
|
|
|
ENV HOST=0.0.0.0
|
|
ENV PORT=8080
|
|
ENV CORSANYWHERE_BLACKLIST=""
|
|
ENV CORSANYWHERE_WHITELIST=""
|
|
|
|
EXPOSE 8080
|
|
|
|
COPY . /cors-anywhere
|
|
|
|
WORKDIR /cors-anywhere
|
|
|
|
RUN npm i
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/node", "server.js" ] |