Skip to content
Go to file
3 contributors

Users who have contributed to this file

@twright-msft @robrich @Septem151
36 lines (26 sloc) 840 Bytes
# Switch to root user for access to apt-get install
USER root
# Install node/npm
RUN apt-get -y update && \
apt-get install -y curl && \
curl -sL | bash - && \
apt-get install -y nodejs && \
apt-get install -y dos2unix
# Install tedious, the driver for SQL Server for Node.js
RUN npm install tedious
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
RUN dos2unix *
# Grant permissions for the import-data script to be executable
RUN chmod +x /usr/src/app/
# Switch back to mssql user and run the entrypoint script
USER mssql
ENTRYPOINT /bin/bash ./
You can’t perform that action at this time.