This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
cors-anywhere-docker/Dockerfile

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" ]