@@ -208,13 +208,15 @@ def get_mapping():
208208 # Docker : Singularity
209209 add_command = {"section" : "%post" ,"fun" : parse_add , "json" : True }
210210 copy_command = {"section" : "%post" , "fun" : parse_add , "json" : True }
211- cmd_command = {"section" : "%runscript" , "fun" : parse_cmd , "json" : True }
211+ cmd_command = {"section" : "%post" , "fun" : parse_comment , "json" : True }
212+ label_command = {"section" : "%post" , "fun" : parse_comment , "json" : True }
213+ port_command = {"section" : "%post" , "fun" : parse_comment , "json" : True }
212214 env_command = {"section" : "%post" , "fun" : parse_env , "json" : False }
213215 comment_command = {"section" : "%post" , "fun" : parse_comment , "json" : False }
214216 from_command = {"section" : "From" , "json" : False }
215217 run_command = {"section" : "%post" , "json" : True }
216218 workdir_command = {"section" : "%post" ,"fun" : parse_workdir , "json" : False }
217- entry_command = {"section" : "%post " , "fun" : parse_entry , "json" : True }
219+ entry_command = {"section" : "%runscript " , "fun" : parse_entry , "json" : True }
218220
219221 return {"ADD" : add_command ,
220222 "COPY" :copy_command ,
@@ -225,7 +227,9 @@ def get_mapping():
225227 "RUN" :run_command ,
226228 "WORKDIR" :workdir_command ,
227229 "MAINTAINER" :comment_command ,
228- "VOLUME" :comment_command }
230+ "VOLUME" :comment_command ,
231+ "PORT" :port_command ,
232+ "LABEL" :label_command }
229233
230234
231235
0 commit comments