-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
44 lines (34 loc) · 1.53 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
# FROM docker/dev-environments-default:stable-1 as base
FROM mcr.microsoft.com/devcontainers/base as base
# Fish repo
RUN echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /' | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list && \
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_11/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
RUN sudo apt-get update -y && sudo apt-get install -y fish git-lfs
COPY env /dw/env
COPY bin /dw/bin
RUN for x in /dw/bin/* ; do ln -s $x /usr/bin/$(basename $x) ; done
RUN date > /dw/build-date
USER vscode
WORKDIR /home/vscode
CMD ["bash"]
FROM base as test
COPY test /dw/test
# RUN install-python 3.10.9 # Must specify patch version
# RUN install-aws-cli latest # Only latest is supported
# RUN install-node 18.12.1 # Any nvm support version
# RUN install-yarn latest # Latest or apt version
# RUN install-amplify-cli 10.6.0 # Any npm supported version
# RUN install-by-pip invoke==1.7
# time in seconds
# gRPC Fuse: 65.30, 80.24, 80.90
# virtioFS: 48.26, 40.69, 44.33
# native: 29.60, 24.70, 25.38
# Default as well.
FROM base as release
# To test changes to this docker file before pushing you can build/run
# Build on Mac M1
# docker build --platform linux/arm64 -f Dockerfile -t container-test .
# Othe platforms
# docker build -f Dockerfile -t container-test .
# Test environment before commit
# docker run -it container-test bash