I already build a NodeJS image that works in HTTP, and now I just want to add an SSL to my application?
Should I use Nginx, if so how can I set it up to work with my Docker image?
My Dockerfile
FROM node
WORKDIR /app
COPY package.json .
RUN npm install --production
RUN apt-get install imagemagick libmagickcore-dev libmagickwand-dev
RUN apt-get clean
COPY . .
EXPOSE 8080 8443
CMD [ "npm", "start" ]
Port maping
Container | Host |
---|---|
8080 | 80 |
8443 | 443 |