-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from AirWalk-Digital/upgrade
Upgrade
- Loading branch information
Showing
7 changed files
with
325 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18.14-alpine | ||
FROM node:18.18-alpine | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG USERNAME=vscode | ||
ARG USER_UID=1000 | ||
|
@@ -18,28 +18,31 @@ RUN apk add doas git; \ | |
RUN git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
RUN git config --global url."[email protected]:".insteadOf "https://ssh.dev.azure.com/" | ||
|
||
## fix npm file issues | ||
RUN mkdir /tmp/npm \ | ||
&& mkdir /tmp/npm/lib \ | ||
&& mkdir /tmp/npm-cache \ | ||
&& mkdir /tmp/app \ | ||
&& npm config set prefix /tmp/npm \ | ||
&& npm config set cache /tmp/npm-cache \ | ||
&& chown -R $USERNAME /tmp/npm \ | ||
&& chown -R $USERNAME /tmp/app \ | ||
&& mkdir /workspaces && chown -R $USERNAME /workspaces | ||
## fix M1 pupetteer issues | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | ||
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium | ||
|
||
# [Optional] Set the default user. Omit if you want to keep the default as root. | ||
USER $USERNAME | ||
|
||
COPY . /tmp/app | ||
|
||
RUN doas chown -R $USERNAME /tmp/npm | ||
RUN doas chown -R $USERNAME /tmp/app | ||
RUN npm config set prefix /tmp/npm | ||
RUN yarn config set prefix /tmp/npm | ||
# RUN yarn | ||
|
||
# ## fix npm file issues | ||
# RUN mkdir /tmp/npm \ | ||
# && mkdir /tmp/npm/lib \ | ||
# && mkdir /tmp/npm-cache \ | ||
# && mkdir /tmp/app \ | ||
# && npm config set prefix /tmp/npm \ | ||
# && npm config set cache /tmp/npm-cache \ | ||
# && chown -R $USERNAME /tmp/npm \ | ||
# && chown -R $USERNAME /tmp/app \ | ||
# && mkdir /workspaces && chown -R $USERNAME /workspaces | ||
|
||
# COPY . /tmp/app | ||
|
||
# RUN doas chown -R $USERNAME /tmp/npm | ||
# RUN doas chown -R $USERNAME /tmp/app | ||
# RUN npm config set prefix /tmp/npm | ||
# RUN yarn config set prefix /tmp/npm | ||
# RUN cd /tmp/app && yarn | ||
|
Oops, something went wrong.