Remove redundant Dockerfile commands

This commit is contained in:
Paul Munteanu 2021-05-23 04:26:24 +03:00
parent 1bfa280626
commit e69464684e
No known key found for this signature in database
GPG Key ID: 4C0797E4861E8917

View File

@ -1,13 +1,11 @@
FROM node:lts-alpine FROM node:lts-alpine
RUN mkdir -p /usr/src/fosscord-gateway
WORKDIR /usr/src/fosscord-gateway WORKDIR /usr/src/fosscord-gateway
COPY package.json /usr/src/fosscord-gateway COPY . .
RUN apk --no-cache --virtual build-dependencies add \ RUN apk --no-cache --virtual build-dependencies add \
python \ python \
make \ make \
g++ g++
RUN npm install RUN npm install
RUN apk del build-dependencies RUN apk del build-dependencies
COPY . /usr/src/fosscord-gateway
EXPOSE 3002 EXPOSE 3002
CMD ["npm", "start"] CMD ["npm", "start"]