dow/server/Dockerfile

27 lines
507 B
Docker
Raw Permalink Normal View History

2024-06-02 15:40:04 +02:00
FROM node:20-alpine
# 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 ./
COPY yarn.lock ./
# Bundle app source
COPY src ./src
COPY static ./static
COPY tsconfig.json ./tsconfig.json
RUN yarn install
# If you are building your code for production
# RUN npm ci --only=production
ENV DATA_PATH=/data
VOLUME [ "/data" ]
EXPOSE 8080
CMD [ "yarn", "start" ]