Skip to content

Instantly share code, notes, and snippets.

@devansvd
Last active June 11, 2020 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devansvd/d562550ab61fb4c71979fa450b20cea2 to your computer and use it in GitHub Desktop.
Save devansvd/d562550ab61fb4c71979fa450b20cea2 to your computer and use it in GitHub Desktop.

Basic docker alpine setup

FROM node:12.18.0-alpine3.9

WORKDIR /usr/src/app

COPY . .

RUN apk --no-cache --virtual build-dependencies add \
    python \
    make \
    g++ \
    && npm install --only=production \
    && chmod +x proxy-server.sh \
    && apk del build-dependencies

EXPOSE 8080

CMD [ "sh", "proxy-server.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment