Files
geovisio-website/Dockerfile

27 lines
444 B
Docker

FROM node:18.16.0-alpine
WORKDIR /opt/geovisio
# Import dependencies files
COPY package.json yarn.lock ./
# Install NodeJS dependencies
RUN yarn install
# Import source code
COPY static ./static
COPY src ./src
COPY *.json *.js *.ts *.html ./
# Build code
RUN yarn build
# Environment variables
ENV PORT=3000
ENV VITE_INSTANCE_NAME="GeoVisio/Docker"
ENV VITE_API_URL="https://panoramax.ign.fr/"
# Expose
EXPOSE 3000
CMD ["yarn", "start"]