/docker-compose.yml
version: "3.0"
services:
server:
build: server
ports:
- 3333:80
/server/Dockerfile
FROM node:16-alpine
MAINTAINER Team DevUp <team.schedule247@gmail.com>
WORKDIR /app
COPY pack*.json ./
RUN \
npm install && \
npm install -g pm2 && \
apt-get update && \
apt-get install -y authbind && \
touch /etc/authbind/byport/443 && \
touch /etc/authbind/byport/80 && \
chown -R /etc/authbind/byport/ && \
chmod -R 755 /etc/authbind/byport/
COPY . .
EXPOSE 80
EXPOSE 443
RUN npm run build
ENTRYPOINT ["authbind", "--deep"]
CMD ["npm","run","start:dev"]