Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
657fa80f
Unverified
Commit
657fa80f
authored
Oct 07, 2023
by
qiuqiua
Committed by
GitHub
Oct 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix devcontainer issue (#1273)
parent
373e90ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
Dockerfile
.devcontainer/Dockerfile
+4
-7
devcontainer.json
.devcontainer/devcontainer.json
+1
-2
No files found.
.devcontainer/Dockerfile
View file @
657fa80f
FROM
mcr.microsoft.com/devcontainers/anaconda:0-3
FROM
mcr.microsoft.com/devcontainers/python:3.10
COPY
. .
# Copy environment.yml (if found) to a temp location so we update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
COPY
environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
RUN if
[
-f
"/tmp/conda-tmp/environment.yml"
]
;
then
umask
0002
&&
/opt/conda/bin/conda
env
update
-n
base
-f
/tmp/conda-tmp/environment.yml
;
fi
\
&&
rm
-rf
/tmp/conda-tmp
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# && apt-get -y install --no-install-recommends <your-package-list-here>
\ No newline at end of file
.devcontainer/devcontainer.json
View file @
657fa80f
//
For
format
details
,
see
https
:
//aka.ms/devcontainer.json.
For
config
options
,
see
the
//
README
at
:
https
:
//github.com/devcontainers/templates/tree/main/src/anaconda
{
"name"
:
"
Anaconda (Python 3)
"
,
"name"
:
"
Python 3.10
"
,
"build"
:
{
"context"
:
".."
,
"dockerfile"
:
"Dockerfile"
},
"features"
:
{
"ghcr.io/dhoeric/features/act:1"
:
{},
"ghcr.io/devcontainers/features/node:1"
:
{
"nodeGypDependencies"
:
true
,
"version"
:
"lts"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment