-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 932 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM artifactory.wma.chs.usgs.gov/docker-official-mirror/debian:stable
LABEL maintainer="[email protected]"
# Run updates and install curl
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install curl -y && \
apt-get purge -y --auto-remove && \
apt-get clean
# Enable the NodeSource repository and install nodejs version 20 (current LTS as of April 2024)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&\
apt-get install -y nodejs
# Create temp directory for building viz app
ARG VITE_APP_TITLE="project"
RUN mkdir -p /tmp/$VITE_APP_TITLE
# Copy source code
WORKDIR /tmp/$VITE_APP_TITLE
COPY . .
# Set environment variables for build target and tile source and then run config.sh
ARG BUILD_DEST="test"
ARG VUE_BUILD_MODE="test"
ENV E_BUILD_DEST=$BUILD_DEST
ENV E_VUE_BUILD_MODE=$VUE_BUILD_MODE
# Build the Vue app.
RUN npm install
RUN chmod +x ./build.sh && ./build.sh