personal-website/Dockerfile

26 lines
515 B
Docker
Raw Normal View History

2022-10-12 11:26:37 -04:00
FROM node:14-alpine
2021-07-24 15:29:34 -04:00
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
2022-10-12 11:26:37 -04:00
RUN apk add --no-cache python3 bash \
&& ln -sf python3 /usr/bin/python
2021-07-24 15:29:34 -04:00
# Bundle app source
COPY . .
2022-10-12 11:26:37 -04:00
RUN python3 -m ensurepip \
&& pip3 install --no-cache --upgrade pip setuptools \
&& pip3 install -r pip-requirements.txt
2021-07-24 15:29:34 -04:00
EXPOSE 8090
CMD [ "npm", "start" ]